Class URIProperty


  • public class URIProperty
    extends Property
    Class modeling a property that has a value of type <uri-specification>. The purpose is mainly to support resolution of a specified relative URI against a specified or inherited xml:base during the property refinement stage. If no xml:base has been specified, only the original URI, as it appears in the source document, is stored as the property's specified value.
    • Field Detail

      • resolvedURI

        private java.net.URI resolvedURI
        will be null if the URI is not resolved against an xml:base
    • Constructor Detail

      • URIProperty

        protected URIProperty​(java.net.URI uri)
        Default constructor, to create a URIProperty from a java.net.URI directly.
        Parameters:
        uri - a resolved java.net.URI
      • URIProperty

        private URIProperty​(java.lang.String uri,
                            boolean resolve)
        Alternate constructor, to create a URIProperty from a string representation.
        Parameters:
        uri - a java.lang.String representing the URI
        resolve - flag indicating whether this URI was the result of resolution
        Throws:
        java.lang.IllegalArgumentException - if the URI should be resolved, but is not valid.
    • Method Detail

      • getString

        public java.lang.String getString()
        Return a string representing the resolved URI, or the specified value if the URI is not resolved against an xml:base
        Overrides:
        getString in class Property
        Returns:
        a string representing the URI
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Property
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object