Package org.apache.ws.commons.schema
Class XmlSchemaGroup
java.lang.Object
org.apache.ws.commons.schema.XmlSchemaObject
org.apache.ws.commons.schema.XmlSchemaAnnotated
org.apache.ws.commons.schema.XmlSchemaGroup
- All Implemented Interfaces:
XmlSchemaNamed,XmlSchemaObjectBase,XmlSchemaAllMember,XmlSchemaChoiceMember,XmlSchemaSequenceMember
public class XmlSchemaGroup
extends XmlSchemaAnnotated
implements XmlSchemaNamed, XmlSchemaChoiceMember, XmlSchemaSequenceMember, XmlSchemaAllMember
Class that defines groups at the schema level that are referenced from the complex types. Groups a set of
element declarations so that they can be incorporated as a group into complex type definitions. Represents
the World Wide Web Consortium (W3C) group element.
-
Field Summary
FieldsFields inherited from class org.apache.ws.commons.schema.XmlSchemaObject
lineNumber, linePosition, sourceURI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Retrieve the name.Retrieve the parent schema.getQName()Get the QName for this object.inthashCode()booleanbooleanvoidSet the name.voidsetParticle(XmlSchemaGroupParticle particle) Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toStringMethods inherited from class org.apache.ws.commons.schema.XmlSchemaObject
addMetaInfo, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
-
Field Details
-
particle
-
namedDelegate
-
-
Constructor Details
-
XmlSchemaGroup
-
-
Method Details
-
equals
- Overrides:
equalsin classXmlSchemaObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classXmlSchemaObject
-
getParticle
-
setParticle
-
getName
Description copied from interface:XmlSchemaNamedRetrieve the name.- Specified by:
getNamein interfaceXmlSchemaNamed- Returns:
- the local name of this object within its schema.
-
getParent
Description copied from interface:XmlSchemaNamedRetrieve the parent schema.- Specified by:
getParentin interfaceXmlSchemaNamed- Returns:
- the containing schema.
-
getQName
Description copied from interface:XmlSchemaNamedGet 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:
getQNamein interfaceXmlSchemaNamed- Returns:
- The qualified name of this object.
- See Also:
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfaceXmlSchemaNamed- Returns:
- true if this object has no name.
-
isTopLevel
public boolean isTopLevel()- Specified by:
isTopLevelin interfaceXmlSchemaNamed- 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.
-
setName
Description copied from interface:XmlSchemaNamedSet the name. Set to null to render the object anonymous, or to prepare to change it to refer to some other object.- Specified by:
setNamein interfaceXmlSchemaNamed- Parameters:
name- the name.
-