Package org.restlet.ext.rdf.internal.xml
Class ScopedProperty<E>
- java.lang.Object
-
- org.restlet.ext.rdf.internal.xml.ScopedProperty<E>
-
- Type Parameters:
E- The type of the property.
class ScopedProperty<E> extends java.lang.ObjectUsed to handle properties that have a scope such as the base URI, the xml:lang property.
-
-
Constructor Summary
Constructors Constructor Description ScopedProperty()Constructor.ScopedProperty(E value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(E value)Add a new value.voiddecrDepth()Decrements the depth of the current value, and remove it if necessary.EgetValue()Returns the current value.voidincrDepth()Increments the depth of the current value.
-
-
-
Field Detail
-
depths
private int[] depths
-
size
private int size
-
values
private java.util.List<E> values
-
-
Constructor Detail
-
ScopedProperty
public ScopedProperty()
Constructor.
-
ScopedProperty
public ScopedProperty(E value)
Constructor.- Parameters:
value- Value.
-
-
Method Detail
-
add
public void add(E value)
Add a new value.- Parameters:
value- The value to be added.
-
decrDepth
public void decrDepth()
Decrements the depth of the current value, and remove it if necessary.
-
getValue
public E getValue()
Returns the current value.- Returns:
- The current value.
-
incrDepth
public void incrDepth()
Increments the depth of the current value.
-
-