2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.model.api.type;
10 import java.util.List;
11 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
15 * Contains method for getting data from the <code>string</code> YANG built-in
18 public interface StringTypeDefinition extends TypeDefinition<StringTypeDefinition> {
21 * Returns length constraint specified in the string. These are the effective constraints, e.g. they include
22 * any length constraints implied by base types.
24 * @return list of length constraint which are specified in the
25 * <code>length</code> substatement of the <code>type</code>
28 List<LengthConstraint> getLengthConstraints();
31 * Returns patterns specified in the string.
33 * @return list of pattern constraints which are specified in the
34 * <code>pattern</code> substatement of the <code>type</code>
37 List<PatternConstraint> getPatternConstraints();