package org.opendaylight.yangtools.yang.model.api.type;
import java.util.List;
-
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
/**
- *
+ *
* Contains method for getting data from the <code>string</code> YANG built-in
* type.
*/
public interface StringTypeDefinition extends TypeDefinition<StringTypeDefinition> {
/**
- * Returns length constraint specified in the string.
- *
+ * Returns length constraint specified in the string. These are the effective constraints, e.g. they include
+ * any length constraints implied by base types.
+ *
* @return list of length constraint which are specified in the
- * <code>lenght</code> substatement of the <code>type</code>
+ * <code>length</code> substatement of the <code>type</code>
* statement
*/
List<LengthConstraint> getLengthConstraints();
/**
* Returns patterns specified in the string.
- *
+ *
* @return list of pattern constraints which are specified in the
* <code>pattern</code> substatement of the <code>type</code>
* statement