public class Property
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Property()
Create an uninitialized property
|
Property(java.lang.String propName)
Construct a property with the given name
|
Modifier and Type | Method and Description |
---|---|
protected void |
addProperty()
Add this property to the internal set of properties
|
static void |
clearDefined()
Clear all properties from the internal cache
|
boolean |
equals(java.lang.Object obj)
Compare the object to this property for equality.
|
java.lang.String |
getName()
Get the name of this property
|
Property |
getParent()
Get the parent property, if any, for this property
|
static Property |
getProperty(java.lang.String name)
Get the named property.
|
static java.util.Set<java.lang.String> |
getPropertyNames()
Get the list of Property names
|
java.net.URI |
getUri()
Get the URI which specifies this property
|
int |
hashCode()
Returns the hash code for this property
|
boolean |
isDescendant(Property prop)
determines if the property is a descendant of this property
|
boolean |
isDescendant(java.lang.String propName)
determines if the property is a descendant of this property
|
protected static void |
putProperty(java.lang.String name,
Property prop)
Add a property to the internal map.
|
void |
setName(java.lang.String propName)
Set the name of this property
|
void |
setUri(java.net.URI propertyUri)
Set the URI which specifies this property
|
java.lang.String |
toString()
return a string representation of this property.
|
public Property()
public Property(java.lang.String propName)
propName
- the property nameprotected void addProperty()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getName()
public Property getParent()
public java.net.URI getUri()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isDescendant(Property prop)
prop
- the propertypublic boolean isDescendant(java.lang.String propName)
propName
- the property namepublic void setName(java.lang.String propName)
propName
- the property namepublic void setUri(java.net.URI propertyUri)
propertyUri
- the uri for the propertypublic java.lang.String toString()
toString
in class java.lang.Object
public static void clearDefined()
public static Property getProperty(java.lang.String name)
name
- the name of the propertypublic static java.util.Set<java.lang.String> getPropertyNames()
protected static void putProperty(java.lang.String name, Property prop)
name
- the name of the propertyprop
- the property