Package com.dtolabs.shared.resources
Class ResourceXMLParser.Entity
- java.lang.Object
-
- com.dtolabs.shared.resources.ResourceXMLParser.Entity
-
- Enclosing class:
- ResourceXMLParser
public static class ResourceXMLParser.Entity extends java.lang.ObjectRepresents a parsed resource entity in the xml, which consists of a name property, a type property, and a set of name/value properties. These property names correspond to the attribute names of the type of entity being parsed. SeeResourceXMLConstantsfor property names.
The specific entity declaration type (node,setting,package,deployment) can be found with thegetResourceType()method. This method will return null if the entity is a resource-reference with no corresponding entity definition in the XML.
Two special properties, "resources.replace" and "referrers.replace" correspond to the values of the "replace" attribute on any embedded resource/referrer references for the entity.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetId()java.lang.StringgetName()java.util.PropertiesgetProperties()java.lang.StringgetProperty(java.lang.String prop)java.lang.StringgetResourceType()Return the name of the resource xml "tag" defining this entity, or null if it is a resource referenceinthashCode()voidsetProperty(java.lang.String prop, java.lang.String value)
-
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getProperties
public java.util.Properties getProperties()
-
getProperty
public java.lang.String getProperty(java.lang.String prop)
-
setProperty
public void setProperty(java.lang.String prop, java.lang.String value)
-
getResourceType
public java.lang.String getResourceType()
Return the name of the resource xml "tag" defining this entity, or null if it is a resource reference- Returns:
- the name of the resource xml "tag" defining this entity, or null if it is a resource reference
-
-