|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxmltorng.i2s.impl.RepeatableElementPatternCategory
public class RepeatableElementPatternCategory
The RepeatableElementPatterncategory
is a pattern category
that contains choice patterns between repeatable or not repeatable named
elements.
May also contain attributes and/or text.
Formally:
attribute ::=
Field Summary | |
---|---|
protected AttributesPatternCategory |
attributesPatternCategory
|
protected java.util.Map |
fromElementNameToRepeatable
|
protected boolean |
hasText
|
Constructor Summary | |
---|---|
protected |
RepeatableElementPatternCategory()
|
protected |
RepeatableElementPatternCategory(AttributesPatternCategory attributesPatternCategory,
boolean hasText)
|
protected |
RepeatableElementPatternCategory(Name elementName,
boolean isRepeatable)
|
Method Summary | |
---|---|
void |
addElementName(Name elementName,
boolean isRepeatable)
|
boolean |
addPattern(Name[] attributeNames,
boolean hasText,
RepeatableName[] repeatableElementNames)
Add a pattern to this pattern category. |
AttributesPatternCategory |
attributesPatternCategory()
|
java.util.Map |
fromElementNameToRepeatable()
Return a not empty map with Name as input and
Boolean as output. |
Pattern |
fullPattern(java.util.Map fromNameToElementDefinition)
Return a pattern that meets all the entered patterns. |
boolean |
hasText()
|
boolean |
isPatternOptional()
The returned value say if the element may be ommited or not. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AttributesPatternCategory attributesPatternCategory
protected boolean hasText
protected final java.util.Map fromElementNameToRepeatable
Constructor Detail |
---|
protected RepeatableElementPatternCategory()
protected RepeatableElementPatternCategory(AttributesPatternCategory attributesPatternCategory, boolean hasText)
protected RepeatableElementPatternCategory(Name elementName, boolean isRepeatable)
Method Detail |
---|
public void addElementName(Name elementName, boolean isRepeatable)
public AttributesPatternCategory attributesPatternCategory()
public boolean hasText()
public java.lang.String toString()
toString
in class java.lang.Object
public Pattern fullPattern(java.util.Map fromNameToElementDefinition)
PatternCategory
fullPattern
in interface PatternCategory
public boolean addPattern(Name[] attributeNames, boolean hasText, RepeatableName[] repeatableElementNames)
PatternCategory
addPattern
in interface PatternCategory
public java.util.Map fromElementNameToRepeatable()
ChoicePatternCategory
Name
as input and
Boolean
as output.
The boolean value say if the named element may be repeated or not.
fromElementNameToRepeatable
in interface ChoicePatternCategory
public boolean isPatternOptional()
ChoicePatternCategory
isPatternOptional
in interface ChoicePatternCategory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |