public static class FolSchematronNode.AttributeNode extends FolSchematronNode
This class represents a chain of attribute selectors based on some value source such as a variable. The value source is the sole child of the Attribute object.
Modifier and Type | Class and Description |
---|---|
protected static class |
FolSchematronNode.AttributeNode.AttrComp |
FolSchematronNode.Arithmetic, FolSchematronNode.AttributeNode, FolSchematronNode.BindingContext, FolSchematronNode.ComparisonNode, FolSchematronNode.Empty, FolSchematronNode.Error, FolSchematronNode.IsNullNode, FolSchematronNode.IsTypeOfNode, FolSchematronNode.LiteralNode, FolSchematronNode.Logic, FolSchematronNode.Matches, FolSchematronNode.MessageComment, FolSchematronNode.NotNode, FolSchematronNode.QuantificationNode, FolSchematronNode.VariableNode, FolSchematronNode.XpathFragment, FolSchematronNode.XpathType
Modifier and Type | Field and Description |
---|---|
protected FolSchematronNode.AttributeNode.AttrComp[] |
attributes |
protected FolSchematronNode.VariableNode |
var |
BY_REFERENCE, children, INLINE, INLINE_OR_BY_REFERENCE, parent, schemaObject, SIMPLE_TYPE
Constructor and Description |
---|
AttributeNode(FOL2Schematron schemaObject)
Ctor - initialisation without any property call
|
AttributeNode(FOL2Schematron schemaObject,
FolSchematronNode.AttributeNode.AttrComp atc)
Ctor - starting from AttrComp
|
AttributeNode(FOL2Schematron schemaObject,
PropertyCall pc)
Ctor - starting from PropertyCall
|
Modifier and Type | Method and Description |
---|---|
void |
appendAbsorbedAttribute(int absorptionType,
PropertyCall pc)
This method marks the last attribute component as being absorbed by
the construct before.
|
void |
appendAttribute(FolSchematronNode.AttributeNode.AttrComp atc)
Append another AttrComp and associated layout info as an additional
qualification.
|
void |
appendAttribute(PropertyCall pc)
Append another PropertyCall and associated layout info as an
additional qualification.
|
FolSchematronNode.AttributeNode |
generatingAttribute()
This inquires the Attribute node this Attribute is generated by.
|
boolean |
hasIdentity()
This predicate finds out whether the Attribute as a whole results in
instances, which conceptually have identity.
|
boolean |
hasIdentity(int idx)
This predicate finds out whether the Attribute component at the given
index idx results in a schema type that carries identity.
|
boolean |
hasSimpleType()
This predicate finds out whether the Attribute as a whole results in
a simple XML schema type.
|
boolean |
hasSimpleType(int idx)
This predicate finds out whether the Attribute component at the given
index idx results in a simple XML schema type.
|
boolean |
implementedAsXmlAttribute() |
boolean |
implementedAsXmlAttribute(int idx) |
boolean |
implementedAsXmlAttribute(PropertyInfo pi) |
boolean |
isMultiple()
This method returns true if any of the PropertyCall objects it is
made of has a maximum cardinality greater than 1.
|
boolean |
isPropertyAbsorbing()
This Attribute predicate finds out if the last attribute component in
the object is implemented as a group and is therefore absorbing its
properties.
|
boolean |
isVarOrAttribBased(Variable vardecl)
This method determines whether this Attribute is dependent on the
Variable passed as argument.
|
void |
setVariable(FolSchematronNode.VariableNode varnode) |
FolSchematronNode.AttributeNode |
splitBefore(int at)
Split the Attribute object before the given index.
|
FolSchematronNode.XpathFragment |
translate(FolSchematronNode.BindingContext ctx)
This function translates the Attribute to an Xpath fragment accessing
that attribute.
|
addChild, containsError, hasSimpleType, isAIXMExtension, isAndOrLogic, isDependentOn, nodeVariableIsBoundTo, objValueFromVariable
protected FolSchematronNode.AttributeNode.AttrComp[] attributes
protected FolSchematronNode.VariableNode var
public AttributeNode(FOL2Schematron schemaObject, PropertyCall pc)
schemaObject
- The schema objectattr
- The (possibly first) PropertyCall objectpublic AttributeNode(FOL2Schematron schemaObject)
schemaObject
- The schema objectpublic AttributeNode(FOL2Schematron schemaObject, FolSchematronNode.AttributeNode.AttrComp atc)
schemaObject
- The schema objectatc
- AttrComp objectpublic void appendAttribute(PropertyCall pc)
Append another PropertyCall and associated layout info as an additional qualification.
aex
- The PropertyCall to be appended be null)public void appendAttribute(FolSchematronNode.AttributeNode.AttrComp atc)
Append another AttrComp and associated layout info as an additional qualification.
aex
- The AttrComp object to be appended be null)public void appendAbsorbedAttribute(int absorptionType, PropertyCall pc)
absorptionType
- Implementation type: 1=normal absorption, 2=reasonpc
- The PropertyCall representing the absorbed property.public FolSchematronNode.AttributeNode splitBefore(int at)
at
- The index before to splitpublic boolean isPropertyAbsorbing()
This Attribute predicate finds out if the last attribute component in the object is implemented as a group and is therefore absorbing its properties. If there is already a property absorbed on the attribute, the absorbed property will be asked.
Note that this is a necessary condition for applying GML's nilReason pattern.
public boolean isVarOrAttribBased(Variable vardecl)
This method determines whether this Attribute is dependent on the Variable passed as argument.
isVarOrAttribBased
in class FolSchematronNode
vardecl
- The Variable of the variablepublic FolSchematronNode.AttributeNode generatingAttribute()
This inquires the Attribute node this Attribute is generated by. Alas, it's this Attribute!
generatingAttribute
in class FolSchematronNode
public boolean isMultiple()
This method returns true if any of the PropertyCall objects it is made of has a maximum cardinality greater than 1.
isMultiple
in class FolSchematronNode
public boolean hasSimpleType()
This predicate finds out whether the Attribute as a whole results in a simple XML schema type. Note that for convenience reasons this also includes the GML's xsi:nil construct.
hasSimpleType
in class FolSchematronNode
public boolean implementedAsXmlAttribute()
public boolean implementedAsXmlAttribute(int idx)
public boolean implementedAsXmlAttribute(PropertyInfo pi)
public boolean hasSimpleType(int idx)
This predicate finds out whether the Attribute component at the given index idx results in a simple XML schema type. Note that for convenience reasons this also includes the GML's xsi:nil construct.
idx
- Index of the attribute componentpublic boolean hasIdentity()
This predicate finds out whether the Attribute as a whole results in instances, which conceptually have identity.
hasIdentity
in class FolSchematronNode
public boolean hasIdentity(int idx)
This predicate finds out whether the Attribute component at the given index idx results in a schema type that carries identity. Note that for convenience reasons this also includes GML's xsi:nil construct.
idx
- Index of the attribute componentpublic FolSchematronNode.XpathFragment translate(FolSchematronNode.BindingContext ctx)
This function translates the Attribute to an Xpath fragment accessing that attribute.
translate
in class FolSchematronNode
ctx
- BindingContext this node shall be compiled inpublic void setVariable(FolSchematronNode.VariableNode varnode)
Copyright © 2018. All rights reserved.