Class XmlSchemaNotation

All Implemented Interfaces:
XmlSchemaNamed, XmlSchemaObjectBase

public class XmlSchemaNotation extends XmlSchemaAnnotated implements XmlSchemaNamed
Class represents a notation. An XML Schema definition language (XSD) notation declaration is a reconstruction of XML 1.0 NOTATION declarations. The purpose of notations is to describe the format of non-XML data within an XML document. Represents the World Wide Web Consortium (W3C) notation element.
  • Field Details

  • Constructor Details

    • XmlSchemaNotation

      public XmlSchemaNotation(XmlSchema parent)
      Creates new XmlSchemaNotation
  • Method Details

    • getPublic

      public String getPublic()
    • setPublic

      public void setPublic(String isPublic)
    • getSystem

      public String getSystem()
    • setSystem

      public void setSystem(String system)
    • getParent

      public XmlSchema getParent()
      Description copied from interface: XmlSchemaNamed
      Retrieve the parent schema.
      Specified by:
      getParent in interface XmlSchemaNamed
      Returns:
      the containing schema.
    • getQName

      public QName getQName()
      Description copied from interface: XmlSchemaNamed
      Get the QName for this object. This is always the formal name that identifies this item in the schema. If the item has a form (an element or attribute), and the form is 'unqualified', this is not the appropriate QName in an instance document. For those items, the getWiredName method returns the appropriate QName for an instance document.
      Specified by:
      getQName in interface XmlSchemaNamed
      Returns:
      The qualified name of this object.
      See Also:
    • isAnonymous

      public boolean isAnonymous()
      Specified by:
      isAnonymous in interface XmlSchemaNamed
      Returns:
      true if this object has no name.
    • isTopLevel

      public boolean isTopLevel()
      Specified by:
      isTopLevel in interface XmlSchemaNamed
      Returns:
      true if this item is a top-level item of the schema; false if this item is nested inside of some other schema object.
    • toString

      public String toString()
      Overrides:
      toString in class XmlSchemaAnnotated
    • setPublicNotation

      void setPublicNotation(String publicNotation)
    • getPublicNotation

      String getPublicNotation()
    • getName

      public String getName()
      Description copied from interface: XmlSchemaNamed
      Retrieve the name.
      Specified by:
      getName in interface XmlSchemaNamed
      Returns:
      the local name of this object within its schema.
    • setName

      public void setName(String name)
      Description copied from interface: XmlSchemaNamed
      Set the name. Set to null to render the object anonymous, or to prepare to change it to refer to some other object.
      Specified by:
      setName in interface XmlSchemaNamed
      Parameters:
      name - the name.