Package ro.sync.contentcompletion.xml
Interface NodeDescription
- All Known Subinterfaces:
CIElement
- All Known Implementing Classes:
CIAttribute
,CIElementAdapter
@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public interface NodeDescription
Node description is in fact a collection of properties for a
node. The node can be either an attribute or an element.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the string representation for all assertions.Get the value of theFRACTION_DIGITS
facet, can benull
if it is not defined.Get the value of theLENGTH
facet, can benull
if it is not defined.Get the value of theMAX_EXCLUSIVE
facet, can benull
if it is not defined.Get the value of theMAX_INCLUSIVE
facet, can benull
if it is not defined.Get the value of theMAX LENGTH
facet, can benull
if it is not defined.Get the value of theMIN_EXCLUSIVE
facet, can benull
if it is not defined.Get the value of theMIN_INCLUSIVE
facet, can benull
if it is not defined.Get the value of theMIN LENGTH
facet, can benull
if it is not defined.Get the value of theTOTAL_DIGITS
facet, can benull
if it is not defined.Get the value of theWHITESPACE
facet, can benull
if it is not defined.Get the model description.getName()
Get the node(attribute or element) name.Returns the mode of the open content.Returns the description for the open content wildcard.Get the possible values as a list ofString
values.void
setAssertions
(String assertionsDescription) Sets the string representation for the node type assertions.void
setFacetFractionDigitsValue
(String fractionDigitsFacetValue) Set the value of theFRACTION_DIGITS
facet.void
setFacetLengthValue
(String lengthFacetValue) Set the value of theLENGTH
facet.void
setFacetMaxExclusiveValue
(String maxExclusiveFacetValue) Set the value of theMAX_EXCLUSIVE
facet.void
setFacetMaxInclusiveValue
(String maxInclusiveFacetValue) Set the value of theMAX_INCLUSIVE
facet.void
setFacetMaxLengthValue
(String maxLengthFacetValue) Set the value of theMAX_LENGTH
facet.void
setFacetMinExclusiveValue
(String minExclusiveFacetValue) Set the value of theMIN_EXCLUSIVE
facet.void
setFacetMinInclusiveValue
(String minInclusiveFacetValue) Set the value of theMIN_INCLUSIVE
facet.void
setFacetMinLengthValue
(String minLengthFacetValue) Set the value of theMIN_LENGTH
facet.void
setFacetPattern
(String patternFacets) Set the value of thePATTERN
facets.void
setFacetTotalDigitsValue
(String totalDigitsFacetValue) Set the value of theTOTAL_DIGITS
facet.void
setFacetWhitespaceValue
(String whitespaceFacetValue) Set the value of theWHITESPACE
facet.void
setModelDescription
(String modelDescription) Set the model description for the node.void
setOpenContentMode
(String mode) Sets the mode of the open content.void
setOpenContentWildcardDescription
(String wildcardDescription) Sets the description for the open content wildcard.void
setPossiblesValues
(List<String> possiblesValues) Set the list of possible values for the node.
-
Method Details
-
getName
String getName()Get the node(attribute or element) name.- Returns:
- The node(attribute or element) name.
-
getPossibleValues
Get the possible values as a list ofString
values.- Returns:
- The list of possible values.
-
getModelDescription
String getModelDescription()Get the model description.- Returns:
- The model description.
-
getFacetLengthValue
String getFacetLengthValue()Get the value of theLENGTH
facet, can benull
if it is not defined.- Returns:
- The value of the
LENGTH
facet.
-
getFacetMinLengthValue
String getFacetMinLengthValue()Get the value of theMIN LENGTH
facet, can benull
if it is not defined.- Returns:
- The value of the
MIN LENGTH
facet.
-
getFacetMaxLengthValue
String getFacetMaxLengthValue()Get the value of theMAX LENGTH
facet, can benull
if it is not defined.- Returns:
- The value of the
MAX LENGTH
facet.
-
getFacetWhitespaceValue
String getFacetWhitespaceValue()Get the value of theWHITESPACE
facet, can benull
if it is not defined.- Returns:
- The value of the
WHITESPACE
facet.
-
getFacetMinInclusiveValue
String getFacetMinInclusiveValue()Get the value of theMIN_INCLUSIVE
facet, can benull
if it is not defined.- Returns:
- The value of the
MIN_INCLUSIVE
facet.
-
getFacetMinExclusiveValue
String getFacetMinExclusiveValue()Get the value of theMIN_EXCLUSIVE
facet, can benull
if it is not defined.- Returns:
- The value of the
MIN_EXCLUSIVE
facet.
-
getFacetMaxInclusiveValue
String getFacetMaxInclusiveValue()Get the value of theMAX_INCLUSIVE
facet, can benull
if it is not defined.- Returns:
- The value of the
MAX_INCLUSIVE
facet.
-
getFacetMaxExclusiveValue
String getFacetMaxExclusiveValue()Get the value of theMAX_EXCLUSIVE
facet, can benull
if it is not defined.- Returns:
- The value of the
MAX_EXCLUSIVE
facet.
-
getFacetTotalDigitsValue
String getFacetTotalDigitsValue()Get the value of theTOTAL_DIGITS
facet, can benull
if it is not defined.- Returns:
- The value of the
TOTAL_DIGITS
facet.
-
getFacetFractionDigitsValue
String getFacetFractionDigitsValue()Get the value of theFRACTION_DIGITS
facet, can benull
if it is not defined.- Returns:
- The value of the
FRACTION_DIGITS
facet.
-
setFacetFractionDigitsValue
Set the value of theFRACTION_DIGITS
facet.- Parameters:
fractionDigitsFacetValue
- The value of theFRACTION_DIGITS
facet to set.
-
setFacetMaxExclusiveValue
Set the value of theMAX_EXCLUSIVE
facet.- Parameters:
maxExclusiveFacetValue
- The value of theMAX_EXCLUSIVE
facet to set.
-
setFacetMaxInclusiveValue
Set the value of theMAX_INCLUSIVE
facet.- Parameters:
maxInclusiveFacetValue
- The value of theMAX_INCLUSIVE
facet to set.
-
setFacetMaxLengthValue
Set the value of theMAX_LENGTH
facet.- Parameters:
maxLengthFacetValue
- The value of theMAX_LENGTH
facet to set.
-
setFacetMinInclusiveValue
Set the value of theMIN_INCLUSIVE
facet.- Parameters:
minInclusiveFacetValue
- The value of theMIN_INCLUSIVE
facet to set.
-
setPossiblesValues
Set the list of possible values for the node.- Parameters:
possiblesValues
- The list with possible (String
) values.
-
setFacetTotalDigitsValue
Set the value of theTOTAL_DIGITS
facet.- Parameters:
totalDigitsFacetValue
- The value of theTOTAL_DIGITS
facet to set.
-
setFacetWhitespaceValue
Set the value of theWHITESPACE
facet.- Parameters:
whitespaceFacetValue
- The value of theWHITESPACE
facet to set.
-
setModelDescription
Set the model description for the node.- Parameters:
modelDescription
- The modelDescription to set.
-
setFacetLengthValue
Set the value of theLENGTH
facet.- Parameters:
lengthFacetValue
- The value of theLENGTH
facet to set.
-
setFacetMinLengthValue
Set the value of theMIN_LENGTH
facet.- Parameters:
minLengthFacetValue
- The value of theMIN_LENGTH
facet to set.
-
setFacetMinExclusiveValue
Set the value of theMIN_EXCLUSIVE
facet.- Parameters:
minExclusiveFacetValue
- The value of theMIN_EXCLUSIVE
facet to set.
-
getFacetPattern
String getFacetPattern()- Returns:
- The
PATTERN
facets as aString
.
-
setFacetPattern
Set the value of thePATTERN
facets.- Parameters:
patternFacets
- The value of thePATTERN
facets to set.
-
getAnnotation
String getAnnotation()- Returns:
- The node annotation, can be
null
.
-
setAssertions
Sets the string representation for the node type assertions.- Parameters:
assertionsDescription
- The string representing all assertions.
-
getAssertions
String getAssertions()Returns the string representation for all assertions. The assertions are collected from node type, by example for simple types they are collected using assertion facets. The representation is (assertion1) && (assertion2) && etc.- Returns:
- The string containing all assertions. Is null if node type does not have any assertion.
-
setOpenContentMode
Sets the mode of the open content. Can be one of 'interleave', 'suffix' or 'none'.- Parameters:
mode
- The mode of the open content.
-
getOpenContentMode
String getOpenContentMode()Returns the mode of the open content. Null if element type does not contains an open content.- Returns:
- The mode of the open content.
-
setOpenContentWildcardDescription
Sets the description for the open content wildcard.- Parameters:
wildcardDescription
- The wildcard description.
-
getOpenContentWildcardDescription
String getOpenContentWildcardDescription()Returns the description for the open content wildcard.- Returns:
- The description for the open content wildcard. Null if wildcard is missing.
-