public class XsdAttributeGroup extends XsdNamedElements
XsdNamedElements, which serves as a base to every element type that can have a ref attribute. For more
information check XsdNamedElements.| Modifier and Type | Field | Description |
|---|---|---|
private List<XsdAttributeGroup> |
attributeGroups |
A list of
XsdAttributeGroup children instances. |
private List<ReferenceBase> |
attributes |
A list of
XsdAttribute children instances. |
private XsdAttributeGroupVisitor |
visitor |
XsdAttributeGroupVisitor instance which limits its children to XsdAttribute instances. |
static String |
XS_TAG |
|
static String |
XSD_TAG |
ABSTRACT_TAG, ATTRIBUTE_FORM_DEFAULT, BASE_TAG, BLOCK_DEFAULT, BLOCK_TAG, DEFAULT_ELEMENT_TAG, DEFAULT_TAG, ELEMENT_FORM_DEFAULT, elementFieldsMap, FINAL_DEFAULT, FINAL_TAG, FIXED_TAG, FORM_TAG, ID_TAG, ITEM_TYPE_TAG, MAX_OCCURS_TAG, MEMBER_TYPES_TAG, MIN_OCCURS_TAG, MIXED_TAG, NAME_TAG, NAMESPACE, NILLABLE_TAG, parent, parser, REF_TAG, SCHEMA_LOCATION, SOURCE_TAG, SUBSTITUTION_GROUP_TAG, TARGET_NAMESPACE, TYPE_TAG, USE_TAG, VALUE_TAG, VERSION, XML_LANG_TAG, XMLNSname| Modifier | Constructor | Description |
|---|---|---|
private |
XsdAttributeGroup(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
|
private |
XsdAttributeGroup(XsdAbstractElement parent,
XsdParser parser,
Map<String,String> elementFieldsMapParam) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(XsdAbstractElementVisitor visitorParam) |
Base method for all accept methods.
|
void |
addAttribute(ReferenceBase attribute) |
|
XsdNamedElements |
clone(Map<String,String> placeHolderAttributes) |
Performs a copy of the current object for replacing purposes.
|
Stream<XsdAttribute> |
getAllAttributes() |
|
List<XsdAttributeGroup> |
getAttributeGroups() |
|
Stream<XsdAttribute> |
getDirectAttributes() |
|
List<ReferenceBase> |
getElements() |
|
XsdAttributeGroupVisitor |
getVisitor() |
Obtains the visitor of a concrete
XsdAbstractElement instance. |
static ReferenceBase |
parse(XsdParser parser,
Node node) |
|
void |
replaceUnsolvedElements(NamedConcreteElement element) |
This method iterates on the current element children and replaces any
UnsolvedReference object that has a
ref attribute that matches the receiving NamedConcreteElement name attribute. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertNodeMap, getElementFieldsMap, getParent, getParser, getXsdElements, setParent, xsdParseSkeleton, xsdRawContentParsegetAnnotation, setAnnotationgetIdgetName, getRawName, setFields, setName, validateSchemaRulespublic static final String XSD_TAG
public static final String XS_TAG
private final XsdAttributeGroupVisitor visitor
XsdAttributeGroupVisitor instance which limits its children to XsdAttribute instances.
Can also have XsdAnnotation as children as per inheritance of XsdAnnotatedElementsVisitor.private List<XsdAttributeGroup> attributeGroups
XsdAttributeGroup children instances.private List<ReferenceBase> attributes
XsdAttribute children instances.private XsdAttributeGroup(@NotNull
XsdParser parser,
@NotNull
Map<String,String> elementFieldsMapParam)
private XsdAttributeGroup(XsdAbstractElement parent, @NotNull XsdParser parser, @NotNull Map<String,String> elementFieldsMapParam)
public void accept(XsdAbstractElementVisitor visitorParam)
XsdAbstractElementaccept in class XsdAbstractElementvisitorParam - The visitor that is visiting the current instance.public XsdAttributeGroupVisitor getVisitor()
XsdAbstractElementXsdAbstractElement instance.getVisitor in class XsdAbstractElementpublic List<ReferenceBase> getElements()
getElements in class XsdAbstractElementXsdAttribute objects contained in the current XsdAttributeGroup instance,
either directly or present in its children XsdAttributeGroup in the
attributeGroups field.public XsdNamedElements clone(@NotNull Map<String,String> placeHolderAttributes)
UnsolvedReference objects in the reference solving process.clone in class XsdNamedElementsplaceHolderAttributes - The additional attributes to add to the clone.public void replaceUnsolvedElements(NamedConcreteElement element)
XsdAbstractElementUnsolvedReference object that has a
ref attribute that matches the receiving NamedConcreteElement name attribute.replaceUnsolvedElements in class XsdAbstractElementelement - A fully parsed element with a name that will replace an UnsolvedReference object, if a
match between the NamedConcreteElement name attribute and the UnsolvedReference
ref attribute.public List<XsdAttributeGroup> getAttributeGroups()
public Stream<XsdAttribute> getAllAttributes()
public Stream<XsdAttribute> getDirectAttributes()
public static ReferenceBase parse(@NotNull XsdParser parser, Node node)
public void addAttribute(ReferenceBase attribute)
Copyright © 2018. All rights reserved.