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_DIGITSfacet, can benullif it is not defined.Get the value of theLENGTHfacet, can benullif it is not defined.Get the value of theMAX_EXCLUSIVEfacet, can benullif it is not defined.Get the value of theMAX_INCLUSIVEfacet, can benullif it is not defined.Get the value of theMAX LENGTHfacet, can benullif it is not defined.Get the value of theMIN_EXCLUSIVEfacet, can benullif it is not defined.Get the value of theMIN_INCLUSIVEfacet, can benullif it is not defined.Get the value of theMIN LENGTHfacet, can benullif it is not defined.Get the value of theTOTAL_DIGITSfacet, can benullif it is not defined.Get the value of theWHITESPACEfacet, can benullif 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 ofStringvalues.voidsetAssertions(String assertionsDescription) Sets the string representation for the node type assertions.voidsetFacetFractionDigitsValue(String fractionDigitsFacetValue) Set the value of theFRACTION_DIGITSfacet.voidsetFacetLengthValue(String lengthFacetValue) Set the value of theLENGTHfacet.voidsetFacetMaxExclusiveValue(String maxExclusiveFacetValue) Set the value of theMAX_EXCLUSIVEfacet.voidsetFacetMaxInclusiveValue(String maxInclusiveFacetValue) Set the value of theMAX_INCLUSIVEfacet.voidsetFacetMaxLengthValue(String maxLengthFacetValue) Set the value of theMAX_LENGTHfacet.voidsetFacetMinExclusiveValue(String minExclusiveFacetValue) Set the value of theMIN_EXCLUSIVEfacet.voidsetFacetMinInclusiveValue(String minInclusiveFacetValue) Set the value of theMIN_INCLUSIVEfacet.voidsetFacetMinLengthValue(String minLengthFacetValue) Set the value of theMIN_LENGTHfacet.voidsetFacetPattern(String patternFacets) Set the value of thePATTERNfacets.voidsetFacetTotalDigitsValue(String totalDigitsFacetValue) Set the value of theTOTAL_DIGITSfacet.voidsetFacetWhitespaceValue(String whitespaceFacetValue) Set the value of theWHITESPACEfacet.voidsetModelDescription(String modelDescription) Set the model description for the node.voidsetOpenContentMode(String mode) Sets the mode of the open content.voidsetOpenContentWildcardDescription(String wildcardDescription) Sets the description for the open content wildcard.voidsetPossiblesValues(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 ofStringvalues.- Returns:
- The list of possible values.
-
getModelDescription
String getModelDescription()Get the model description.- Returns:
- The model description.
-
getFacetLengthValue
String getFacetLengthValue()Get the value of theLENGTHfacet, can benullif it is not defined.- Returns:
- The value of the
LENGTHfacet.
-
getFacetMinLengthValue
String getFacetMinLengthValue()Get the value of theMIN LENGTHfacet, can benullif it is not defined.- Returns:
- The value of the
MIN LENGTHfacet.
-
getFacetMaxLengthValue
String getFacetMaxLengthValue()Get the value of theMAX LENGTHfacet, can benullif it is not defined.- Returns:
- The value of the
MAX LENGTHfacet.
-
getFacetWhitespaceValue
String getFacetWhitespaceValue()Get the value of theWHITESPACEfacet, can benullif it is not defined.- Returns:
- The value of the
WHITESPACEfacet.
-
getFacetMinInclusiveValue
String getFacetMinInclusiveValue()Get the value of theMIN_INCLUSIVEfacet, can benullif it is not defined.- Returns:
- The value of the
MIN_INCLUSIVEfacet.
-
getFacetMinExclusiveValue
String getFacetMinExclusiveValue()Get the value of theMIN_EXCLUSIVEfacet, can benullif it is not defined.- Returns:
- The value of the
MIN_EXCLUSIVEfacet.
-
getFacetMaxInclusiveValue
String getFacetMaxInclusiveValue()Get the value of theMAX_INCLUSIVEfacet, can benullif it is not defined.- Returns:
- The value of the
MAX_INCLUSIVEfacet.
-
getFacetMaxExclusiveValue
String getFacetMaxExclusiveValue()Get the value of theMAX_EXCLUSIVEfacet, can benullif it is not defined.- Returns:
- The value of the
MAX_EXCLUSIVEfacet.
-
getFacetTotalDigitsValue
String getFacetTotalDigitsValue()Get the value of theTOTAL_DIGITSfacet, can benullif it is not defined.- Returns:
- The value of the
TOTAL_DIGITSfacet.
-
getFacetFractionDigitsValue
String getFacetFractionDigitsValue()Get the value of theFRACTION_DIGITSfacet, can benullif it is not defined.- Returns:
- The value of the
FRACTION_DIGITSfacet.
-
setFacetFractionDigitsValue
Set the value of theFRACTION_DIGITSfacet.- Parameters:
fractionDigitsFacetValue- The value of theFRACTION_DIGITSfacet to set.
-
setFacetMaxExclusiveValue
Set the value of theMAX_EXCLUSIVEfacet.- Parameters:
maxExclusiveFacetValue- The value of theMAX_EXCLUSIVEfacet to set.
-
setFacetMaxInclusiveValue
Set the value of theMAX_INCLUSIVEfacet.- Parameters:
maxInclusiveFacetValue- The value of theMAX_INCLUSIVEfacet to set.
-
setFacetMaxLengthValue
Set the value of theMAX_LENGTHfacet.- Parameters:
maxLengthFacetValue- The value of theMAX_LENGTHfacet to set.
-
setFacetMinInclusiveValue
Set the value of theMIN_INCLUSIVEfacet.- Parameters:
minInclusiveFacetValue- The value of theMIN_INCLUSIVEfacet 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_DIGITSfacet.- Parameters:
totalDigitsFacetValue- The value of theTOTAL_DIGITSfacet to set.
-
setFacetWhitespaceValue
Set the value of theWHITESPACEfacet.- Parameters:
whitespaceFacetValue- The value of theWHITESPACEfacet to set.
-
setModelDescription
Set the model description for the node.- Parameters:
modelDescription- The modelDescription to set.
-
setFacetLengthValue
Set the value of theLENGTHfacet.- Parameters:
lengthFacetValue- The value of theLENGTHfacet to set.
-
setFacetMinLengthValue
Set the value of theMIN_LENGTHfacet.- Parameters:
minLengthFacetValue- The value of theMIN_LENGTHfacet to set.
-
setFacetMinExclusiveValue
Set the value of theMIN_EXCLUSIVEfacet.- Parameters:
minExclusiveFacetValue- The value of theMIN_EXCLUSIVEfacet to set.
-
getFacetPattern
String getFacetPattern()- Returns:
- The
PATTERNfacets as aString.
-
setFacetPattern
Set the value of thePATTERNfacets.- Parameters:
patternFacets- The value of thePATTERNfacets 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.
-