public class EdgeListProperty extends AbstractProperty
Constructor and Description |
---|
EdgeListProperty(EdgeListProperty other)
EdgeListProperty copy constructor.
|
EdgeListProperty(java.lang.Enum<?> urn)
Construct a new EdgeListProperty with no defined value.
|
EdgeListProperty(java.lang.Enum<?> urn,
java.util.List<Edge> edges)
Construct a new EdgeListProperty with no defined value.
|
EdgeListProperty(java.lang.String urn)
Construct a new EdgeListProperty with no defined value.
|
EdgeListProperty(java.lang.String urn,
java.util.List<Edge> edges)
Construct a new EdgeListProperty with no defined value.
|
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Edge edge)
Add an edge to the list.
|
void |
clearEdges()
Remove all edges from this list but keep it defined.
|
EdgeListProperty |
copy()
Create a copy of this property.
|
java.util.List<Edge> |
getValue()
Get the value of this property.
|
void |
read(java.io.InputStream in)
Read this property from a stream.
|
void |
setEdges(java.util.List<Edge> newEdges)
Set the list of edges.
|
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 EdgeListProperty(java.lang.String urn)
urn
- The urn of this property.public EdgeListProperty(java.lang.Enum<?> urn)
urn
- The urn of this property.public EdgeListProperty(java.lang.String urn, java.util.List<Edge> edges)
urn
- The urn of this property.edges
- The edge list.public EdgeListProperty(java.lang.Enum<?> urn, java.util.List<Edge> edges)
urn
- The urn of this property.edges
- The edge list.public EdgeListProperty(EdgeListProperty other)
other
- The EdgeListProperty to copy.public java.util.List<Edge> getValue()
Property
public void setEdges(java.util.List<Edge> newEdges)
AbstractProperty.isDefined()
will return true.newEdges
- The new edge list.public void addEdge(Edge edge)
edge
- The edge to add.public void clearEdges()
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 EdgeListProperty copy()
Property