Interface SimpleType

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALL
      Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
      static int LIST
      Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
      static int NONE
      Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
      static int RESTRICTION
      Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
      static int UNION
      Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
    • Field Detail

      • NONE

        static final int NONE
        Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
        See Also:
        Constant Field Values
      • UNION

        static final int UNION
        Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
        See Also:
        Constant Field Values
      • LIST

        static final int LIST
        Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
        See Also:
        Constant Field Values
      • RESTRICTION

        static final int RESTRICTION
        Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
        See Also:
        Constant Field Values
      • ALL

        static final int ALL
        Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
        See Also:
        Constant Field Values
    • Method Detail

      • getFinal

        int getFinal()
        This specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.
      • getId

        String getId()
        The Schema ID for this simpleType definition.
      • toAttribute

        AttributeValue toAttribute​(Attribute attribute,
                                   Object value,
                                   Map<String,​Object> hints)
                            throws OperationNotSupportedException
        returns the value as a string
        Throws:
        OperationNotSupportedException
      • canCreateAttributes

        boolean canCreateAttributes​(Attribute attribute,
                                    Object value,
                                    Map<String,​Object> hints)
      • getChildType

        int getChildType()
        Returns an int of either List, Union or Restriction
      • getParents

        SimpleType[] getParents()
        A simple simpleType when either a List or Restriction ... A set when a Union
      • getFacets

        Facet[] getFacets()
        The list of facets for this Restriction ... Null if another type (List, Union)