Package org.apache.ws.commons.schema
Class XmlSchemaAttributeGroup
java.lang.Object
org.apache.ws.commons.schema.XmlSchemaObject
org.apache.ws.commons.schema.XmlSchemaAnnotated
org.apache.ws.commons.schema.XmlSchemaAttributeGroup
- All Implemented Interfaces:
XmlSchemaNamed,XmlSchemaObjectBase,XmlSchemaAttributeGroupMember
public class XmlSchemaAttributeGroup
extends XmlSchemaAnnotated
implements XmlSchemaNamed, XmlSchemaAttributeGroupMember
Class for attribute groups. Groups a set of attribute declarations so that
they can be incorporated as a
group into complex type definitions. Represents the World Wide Web
consortium (W3C) attributeGroup element when it does not have a 'ref='
attribute.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate XmlSchemaAnyAttributeprivate List<XmlSchemaAttributeGroupMember> private XmlSchemaNamedImplFields inherited from class org.apache.ws.commons.schema.XmlSchemaObject
lineNumber, linePosition, sourceURI -
Constructor Summary
ConstructorsConstructorDescriptionXmlSchemaAttributeGroup(XmlSchema parent) Creates new XmlSchemaAttributeGroup -
Method Summary
Modifier and TypeMethodDescriptiongetName()Retrieve the name.Retrieve the parent schema.getQName()Get the QName for this object.booleanbooleanvoidsetAnyAttribute(XmlSchemaAnyAttribute anyAttribute) voidSet the name.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, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, hashCode, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
-
Field Details
-
anyAttribute
-
attributes
-
namedDelegate
-
-
Constructor Details
-
XmlSchemaAttributeGroup
Creates new XmlSchemaAttributeGroup
-
-
Method Details
-
getAnyAttribute
-
setAnyAttribute
-
getAttributes
-
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.
-