Class ResourceXMLParser.Entity

  • Enclosing class:
    ResourceXMLParser

    public static class ResourceXMLParser.Entity
    extends java.lang.Object
    Represents 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. See ResourceXMLConstants for property names.
    The specific entity declaration type (node,setting,package,deployment) can be found with the getResourceType() 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
      boolean equals​(java.lang.Object o)  
      java.lang.String getId()  
      java.lang.String getName()  
      java.util.Properties getProperties()  
      java.lang.String getProperty​(java.lang.String prop)  
      java.lang.String getResourceType()
      Return the name of the resource xml "tag" defining this entity, or null if it is a resource reference
      int hashCode()  
      void setProperty​(java.lang.String prop, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
      • getName

        public java.lang.String getName()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.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