public class EntityRefListProperty extends AbstractProperty
Constructor and Description |
---|
EntityRefListProperty(EntityRefListProperty other)
EntityRefListProperty copy constructor.
|
EntityRefListProperty(java.lang.Enum<?> urn)
Construct an EntityRefListProperty with no defined value.
|
EntityRefListProperty(java.lang.Enum<?> urn,
java.util.List<EntityID> ids)
Construct an EntityRefListProperty with a defined value.
|
EntityRefListProperty(java.lang.String urn)
Construct an EntityRefListProperty with no defined value.
|
EntityRefListProperty(java.lang.String urn,
java.util.List<EntityID> ids)
Construct an EntityRefListProperty with a defined value.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(EntityID id)
Add a value to the list.
|
void |
clearValues()
Remove all entries from this list but keep it defined.
|
EntityRefListProperty |
copy()
Create a copy of this property.
|
java.util.List<EntityID> |
getValue()
Get the value of this property.
|
void |
read(java.io.InputStream in)
Read this property from a stream.
|
void |
setValue(java.util.List<EntityID> newIDs)
Set the list of ids.
|
void |
takeValue(Property p)
Take on the value of another property.
|
void |
write(java.io.OutputStream out)
Write this property to a stream.
|
fireChange, getURN, isDefined, setDefined, setEntity, toString, undefine
public EntityRefListProperty(java.lang.String urn)
urn
- The urn of this property.public EntityRefListProperty(java.lang.Enum<?> urn)
urn
- The urn of this property.public EntityRefListProperty(java.lang.String urn, java.util.List<EntityID> ids)
urn
- The urn of this property.ids
- The initial value of the property.public EntityRefListProperty(java.lang.Enum<?> urn, java.util.List<EntityID> ids)
urn
- The urn of this property.ids
- The initial value of the property.public EntityRefListProperty(EntityRefListProperty other)
other
- The EntityRefListProperty to copy.public java.util.List<EntityID> getValue()
Property
public void setValue(java.util.List<EntityID> newIDs)
AbstractProperty.isDefined()
will return true.newIDs
- The new id list.public void addValue(EntityID id)
id
- The id to add.public void clearValues()
public void takeValue(Property p)
Property
p
- The other property to inspect.public void write(java.io.OutputStream out) throws java.io.IOException
Property
out
- The stream to write to.java.io.IOException
- If the write fails.public void read(java.io.InputStream in) throws java.io.IOException
Property
in
- The stream to read from.java.io.IOException
- If the read fails.public EntityRefListProperty copy()
Property