XsdAbstractElementVisitorXsdComplexTypeVisitor, XsdExtensionVisitor, XsdRestrictionsVisitor, XsdSchemaVisitorpublic abstract class AttributesVisitor extends XsdAnnotatedElementsVisitor
XsdAttribute and XsdAttributeGroup.
This visitor contains the attributes and attributeGroups that
belong to the owner and apart from receiving the attributes in the visit method this visitor also performs the
replaceUnsolvedAttributes(org.xmlet.xsdparser.xsdelements.elementswrapper.NamedConcreteElement) method, which is a method that was shared by all the types that
contained a list of XsdAttribute and XsdAttributeGroup objects.
Can also have xsd:annotation children as per inheritance of XsdAnnotatedElementsVisitor.| Modifier and Type | Field | Description |
|---|---|---|
private List<ReferenceBase> |
attributeGroups |
The list of
XsdAttributeGroup instances received by this visitor, wrapped in a ReferenceBase object. |
private List<ReferenceBase> |
attributes |
The list of
XsdAttribute instances received by this visitor, wrapped in a ReferenceBase object. |
| Constructor | Description |
|---|---|
AttributesVisitor(XsdAnnotatedElements owner) |
| Modifier and Type | Method | Description |
|---|---|---|
List<ReferenceBase> |
getAttributeGroups() |
|
List<ReferenceBase> |
getAttributes() |
|
Stream<XsdAttributeGroup> |
getXsdAttributeGroup() |
|
Stream<XsdAttribute> |
getXsdAttributes() |
|
void |
replaceUnsolvedAttributes(NamedConcreteElement element) |
Tries to match the received
NamedConcreteElement object, with any of the elements present either in
attributeGroups or attributes. |
void |
setAttributeGroups(List<ReferenceBase> attributeGroups) |
|
void |
setAttributes(List<ReferenceBase> attributes) |
|
void |
visit(XsdAttribute attribute) |
|
void |
visit(XsdAttributeGroup attributeGroup) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitgetOwner, visitprivate List<ReferenceBase> attributeGroups
XsdAttributeGroup instances received by this visitor, wrapped in a ReferenceBase object.private List<ReferenceBase> attributes
XsdAttribute instances received by this visitor, wrapped in a ReferenceBase object.AttributesVisitor(XsdAnnotatedElements owner)
public void visit(XsdAttribute attribute)
public void visit(XsdAttributeGroup attributeGroup)
public void setAttributes(List<ReferenceBase> attributes)
public void setAttributeGroups(List<ReferenceBase> attributeGroups)
public List<ReferenceBase> getAttributes()
XsdAttribute objects received by this visitor.public List<ReferenceBase> getAttributeGroups()
XsdAttributeGroup objects received by this visitor.public Stream<XsdAttribute> getXsdAttributes()
XsdAttribute objects that are fully resolved by this visitor. The XsdAttribute
objects wrapped in UnsolvedReference objects are not returned.public Stream<XsdAttributeGroup> getXsdAttributeGroup()
XsdAttributeGroup objects that are fully resolved by this visitor. The
XsdAttributeGroup objects wrapped in UnsolvedReference objects are not returned.public void replaceUnsolvedAttributes(NamedConcreteElement element)
NamedConcreteElement object, with any of the elements present either in
attributeGroups or attributes. If a match occurs this method
performs all the required actions to fully exchange the UnsolvedReference object with the element parameter.element - The resolved element that will be match with the contents of this visitor in order to assert if
there is anything to replace.Copyright © 2018. All rights reserved.