X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Fapi%2Ftype%2FLengthConstraint.java;fp=yang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Fapi%2Ftype%2FLengthConstraint.java;h=0000000000000000000000000000000000000000;hb=cd1501e55d171c6b8ba761894abff2402fc9c4e6;hp=3d259a54a3ed48cac16a6816eed879360bb88585;hpb=ea35f44c813c0171d5dafae37863112b5bff516a;p=yangtools.git
diff --git a/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/LengthConstraint.java b/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/LengthConstraint.java
deleted file mode 100644
index 3d259a54a3..0000000000
--- a/yang-model-api/src/main/java/org/opendaylight/controller/yang/model/api/type/LengthConstraint.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.controller.yang.model.api.type;
-
-import org.opendaylight.controller.yang.model.api.ConstraintMetaDefinition;
-
-/**
- * The Lenght Constraint value consists of an explicit value, or a lower bound
- * returned by {@link #getMin()} and an upper bound returned by
- * {@link #getMax()}.
- *
- * Length-restricting values MUST NOT be negative. A length value is a
- * non-negative integer, or one of the special values min
or
- * max
. The defined min
and max
mean the
- * minimum and maximum length accepted for the type being restricted,
- * respectively.
- * An implementation is not required to support a length value larger than
- * {@link Long#MAX_VALUE}
- *
- * The interface extends definitions from {@link ConstraintMetaDefinition}
- *
- * This interface was modeled according to definition in [RFC-6020] The
- * length Statement.
- *
- * @see ConstraintMetaDefinition
- */
-public interface LengthConstraint extends ConstraintMetaDefinition {
-
- /**
- * Returns the length-restricting lower bound value.
- * The value MUST NOT be negative.
- *
- * @return the length-restricting lower bound value.
- */
- Number getMin();
-
- /**
- * Returns the length-restricting upper bound value.
- * The value MUST NOT be negative.
- *
- * @return length-restricting upper bound value.
- */
- Number getMax();
-}