Class ModelGroup

    • Constructor Detail

      • ModelGroup

        public ModelGroup()
        Creates a new ModelGroup, with no name
      • ModelGroup

        public ModelGroup​(Schema schema)
        Creates a new ModelGroup definition
        Parameters:
        schema - the XML Schema to which this ModelGroup belongs
      • ModelGroup

        public ModelGroup​(java.lang.String name,
                          Schema schema)
        Creates a new ModelGroup with the given name
        Parameters:
        name - of the ModelGroup
    • Method Detail

      • addModelGroup

        public void addModelGroup​(ModelGroup modelGroup)
        Adds the given ModelGroup to this ModelGroup
        Parameters:
        modelGroup - the ModelGroup to add to this ModelGroup
      • getDeclarations

        public java.util.Enumeration getDeclarations()
        Returns an ordered Enumeration of all the ContentModelType definitions (element, group, modelGroupRef)+
      • getContentModelGroup

        public ContentModelGroup getContentModelGroup()
        Returns the ContentModelGroup for this group Only used for a element
        Overrides:
        getContentModelGroup in class Group
        Returns:
        the ContentModelGroup for this group
      • getName

        public java.lang.String getName()
        Returns the name of this ModelGroup.
        Overrides:
        getName in class Group
        Returns:
        the name of this ModelGroup.
      • getName

        public java.lang.String getName​(boolean ignoreRef)
        Returns the name of this Model Group definition
        Parameters:
        ignoreRef - If True the name of the referenced model group (if specified) is returned
        Returns:
        the name of this element declaration
      • isReference

        public boolean isReference()
        Returns true if this model group definition simply references another model group Definition
        Returns:
        true if this model group definition is a reference
      • setRedefined

        public void setRedefined()
        Sets this Group has redefined.
      • isRedefined

        public boolean isRedefined()
        Returns true if this group is a redefinition.
        Returns:
        true if this group is a redefinition.
      • setReference

        public void setReference​(java.lang.String reference)
        Sets the reference for this ModelGroup definition
        Parameters:
        reference - the name of the ModelGroup that this definition references
      • getReferenceId

        public java.lang.String getReferenceId()
        Returns the Id used to Refer to this Object
        Specified by:
        getReferenceId in interface Referable
        Overrides:
        getReferenceId in class Group
        Returns:
        the Id used to Refer to this Object
        See Also:
        Referable
      • getReference

        public ModelGroup getReference()
        Returns the reference if any
        Returns:
        the reference if any
      • hasReference

        public boolean hasReference()
        Returns true if this ModelGroup is referencing another one
        Returns:
        true if this ModelGroup is referencing another one
      • getSchema

        public Schema getSchema()
        Returns the schema that contains this modelGroup definition
      • setSchema

        public void setSchema​(Schema schema)
        Sets the Schema that contains this group.
        Parameters:
        schema - the Schema that contains this group.