@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class CIAttribute
extends java.lang.Object
implements java.lang.Comparable<CIAttribute>, NodeDescription, java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static interface |
CIAttribute.DefaultValueProvider
Default value provider for an attribute.
|
static class |
CIAttribute.EditableState
The editable state of the attribute.
|
| Constructor and Description |
|---|
CIAttribute()
Default Constructor.
|
CIAttribute(java.lang.String name,
boolean required,
boolean fixed,
java.lang.String defaultValue,
java.util.List<java.lang.String> possibleValues)
Constructor.
|
CIAttribute(java.lang.String namespace,
java.lang.String name,
boolean required,
boolean fixed,
java.lang.String defaultValue,
java.util.List<java.lang.String> possibleValues)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Allows cloning.
|
int |
compareTo(CIAttribute otherAttribute)
Compare two attributes based on the string obtained by concatenating the
name and the namespace of each attribute.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnnotation()
Get the annotation for the attribute.
|
java.lang.String |
getAssertions()
Returns the string representation for all assertions.
|
java.lang.String |
getDefaultValue()
Gets the default value attribute of the attribute.
|
CIAttribute.EditableState |
getEditableState() |
java.lang.String |
getFacetFractionDigitsValue()
Gets the value of the
FRACTION_DIGITS facet corresponding to
the attribute. |
java.lang.String |
getFacetLengthValue()
Gets the value of the
LENGTH facet corresponding to
the attribute. |
java.lang.String |
getFacetMaxExclusiveValue()
Gets the value of the
MAX_EXCLUSIVE facet corresponding to
the attribute. |
java.lang.String |
getFacetMaxInclusiveValue()
Gets the value of the
MAX_INCLUSIVE facet corresponding to
the attribute. |
java.lang.String |
getFacetMaxLengthValue()
Gets the value of the
MAX_LENGTH facet corresponding to
the attribute. |
java.lang.String |
getFacetMinExclusiveValue()
Gets the value of the
MIN_EXCLUSIVE facet corresponding to
the attribute. |
java.lang.String |
getFacetMinInclusiveValue()
Gets the value of the
MIN_INCLUSIVE facet corresponding to
the attribute. |
java.lang.String |
getFacetMinLengthValue()
Gets the value of the
MIN_LENGTH facet corresponding to
the attribute. |
java.lang.String |
getFacetPattern()
Gets the value of the
PATTERN facet corresponding to
the attribute. |
java.lang.String |
getFacetTotalDigitsValue()
Gets the value of the
TOTAL_DIGITS facet corresponding to
the attribute. |
java.lang.String |
getFacetWhitespaceValue()
Gets the value of the
WHITESPACE facet corresponding to
the attribute. |
java.lang.String |
getModelDescription()
Gets the model description.
|
java.lang.String |
getName()
Gets the QName of the attribute in almost all cases.
|
java.lang.String |
getNamespace()
Gets the namespace attribute of the attribute.
|
java.lang.String |
getOpenContentMode()
Returns the mode of the open content.
|
java.lang.String |
getOpenContentWildcardDescription()
Returns the description for the open content wildcard.
|
java.util.List<java.lang.String> |
getPossibleValues()
Gets the possible values this attribute can have.
|
java.lang.String |
getPrefix()
Get the attribute prefix.
|
boolean |
hasDefaultValue()
Check if has default value attribute of the attribute.
|
int |
hashCode() |
boolean |
isAttributeNameQualified()
Returns
true if the name of the attribute is a QName. |
boolean |
isDeclareXmlns()
Check if attribute should add an xmlns declaration.
|
boolean |
isFixed()
Find if the attribute is fixed.
|
boolean |
isRequired()
Gets the required attribute of the attribute.
|
void |
setAnnotation(java.lang.String annotation)
Set the annotation for the attribute.
|
void |
setAssertions(java.lang.String assertionsDescription)
Sets the string representation for the node type assertions.
|
void |
setDeclareXmlns(boolean declareXmlns)
Set if the attribute should add an xmlns declaration.
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value attribute of the attribute.
|
void |
setEditableState(CIAttribute.EditableState editableState) |
void |
setFacetFractionDigitsValue(java.lang.String fractionDigitsFacetValue)
Sets the value of the
FRACTION_DIGITS facet corresponding to
the attribute. |
void |
setFacetLengthValue(java.lang.String lengthFacetValue)
Sets the value of the
LENGTH facet corresponding to
the attribute. |
void |
setFacetMaxExclusiveValue(java.lang.String maxExclusiveFacetValue)
Sets the value of the
MAX_EXCLUSIVE facet corresponding to
the attribute. |
void |
setFacetMaxInclusiveValue(java.lang.String maxInclusiveFacetValue)
Sets the value of the
MAX_INCLUSIVE facet corresponding to
the attribute. |
void |
setFacetMaxLengthValue(java.lang.String maxLengthFacetValue)
Sets the value of the
MAX_LENGTH facet corresponding to
the attribute. |
void |
setFacetMinExclusiveValue(java.lang.String minExclusiveFacetValue)
Sets the value of the
MIN_EXCLUSIVE facet corresponding to
the attribute. |
void |
setFacetMinInclusiveValue(java.lang.String minInclusiveFacetValue)
Sets the value of the
MIN_INCLUSIVE facet corresponding to
the attribute. |
void |
setFacetMinLengthValue(java.lang.String minLengthFacetValue)
Sets the value of the
MIN_LENGTH facet corresponding to
the attribute. |
void |
setFacetPattern(java.lang.String patternFacets)
Sets the value of the
PATTERN facet corresponding to
the attribute. |
void |
setFacetTotalDigitsValue(java.lang.String totalDigitsFacetValue)
Sets the value of the
TOTAL_DIGITS facet corresponding to
the attribute. |
void |
setFacetWhitespaceValue(java.lang.String whitespaceFacetValue)
Sets the value of the
WHITESPACE facet corresponding to
the attribute. |
void |
setFixed(boolean fixed)
Sets the fixed mode of the attribute.
|
void |
setModelDescription(java.lang.String modelDescription)
Sets the model description.
|
void |
setName(java.lang.String name)
Sets the local name of the attribute.
|
void |
setNamespace(java.lang.String namespace)
Sets the namespace value for the attribute.
|
void |
setOpenContentMode(java.lang.String mode)
Sets the mode of the open content.
|
void |
setOpenContentWildcardDescription(java.lang.String wildcardDescription)
Sets the description for the open content wildcard.
|
void |
setOverridingDefaultValueProvider(CIAttribute.DefaultValueProvider defaultValueProvider)
Sets the default value provider that overrides the default value.
|
void |
setPossiblesValues(java.util.List<java.lang.String> possiblesValues)
Sets the possible values this attribute can have.
|
void |
setPrefix(java.lang.String prefix)
Set the attribute prefix.
|
void |
setRequired(boolean required)
Sets the required value for the attribute.
|
java.lang.String |
toString() |
public CIAttribute()
public CIAttribute(java.lang.String name,
boolean required,
boolean fixed,
java.lang.String defaultValue,
java.util.List<java.lang.String> possibleValues)
name - The attribute name.required - True if the attribute is required.fixed - True if the attribute is fixed.defaultValue - The default value of the attribute.possibleValues - The list of possible values for the attribute.public CIAttribute(java.lang.String namespace,
java.lang.String name,
boolean required,
boolean fixed,
java.lang.String defaultValue,
java.util.List<java.lang.String> possibleValues)
namespace - The attribute namespace.name - The attribute name.required - True if the attribute is required.fixed - True if the attribute is fixed.defaultValue - The default value of the attribute.possibleValues - The list of possible values for the attribute.public CIAttribute.EditableState getEditableState()
public void setEditableState(CIAttribute.EditableState editableState)
editableState - The editable state to set.public boolean isFixed()
true if the attribute is fixed.public java.lang.String getName()
isDeclareXmlns().getName in interface NodeDescriptionpublic void setName(java.lang.String name)
name - The local name of the attribute to be set.public java.lang.String getNamespace()
public boolean isRequired()
public java.lang.String getDefaultValue()
null if a default value was not
previously set, nor the default value provider was set.public boolean hasDefaultValue()
true if has default value for attribute.public java.util.List<java.lang.String> getPossibleValues()
getPossibleValues in interface NodeDescriptionnull if a possible
values list cannot be determined.public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int compareTo(CIAttribute otherAttribute)
compareTo in interface java.lang.Comparable<CIAttribute>otherAttribute - The CIAttribute to compare with.public java.lang.String getFacetFractionDigitsValue()
FRACTION_DIGITS facet corresponding to
the attribute.getFacetFractionDigitsValue in interface NodeDescriptionFRACTION_DIGITS facet.
Can be null.public void setFacetFractionDigitsValue(java.lang.String fractionDigitsFacetValue)
FRACTION_DIGITS facet corresponding to
the attribute.setFacetFractionDigitsValue in interface NodeDescriptionfractionDigitsFacetValue - The value of the FRACTION_DIGITS
facet to be set.public java.lang.String getFacetLengthValue()
LENGTH facet corresponding to
the attribute.getFacetLengthValue in interface NodeDescriptionLENGTH facet.
Can be null.public void setFacetLengthValue(java.lang.String lengthFacetValue)
LENGTH facet corresponding to
the attribute.setFacetLengthValue in interface NodeDescriptionlengthFacetValue - The value of the LENGTH
facet to be set.public java.lang.String getFacetMaxExclusiveValue()
MAX_EXCLUSIVE facet corresponding to
the attribute.getFacetMaxExclusiveValue in interface NodeDescriptionMAX_EXCLUSIVE facet.
Can be null.public void setFacetMaxExclusiveValue(java.lang.String maxExclusiveFacetValue)
MAX_EXCLUSIVE facet corresponding to
the attribute.setFacetMaxExclusiveValue in interface NodeDescriptionmaxExclusiveFacetValue - The value of the MAX_EXCLUSIVE
facet to be set.public java.lang.String getFacetMaxInclusiveValue()
MAX_INCLUSIVE facet corresponding to
the attribute.getFacetMaxInclusiveValue in interface NodeDescriptionMAX_INCLUSIVE facet.
Can be null.public void setFacetMaxInclusiveValue(java.lang.String maxInclusiveFacetValue)
MAX_INCLUSIVE facet corresponding to
the attribute.setFacetMaxInclusiveValue in interface NodeDescriptionmaxInclusiveFacetValue - The value of the MAX_INCLUSIVE
facet to be set.public java.lang.String getFacetMaxLengthValue()
MAX_LENGTH facet corresponding to
the attribute.getFacetMaxLengthValue in interface NodeDescriptionMAX_LENGTH facet.
Can be null.public void setFacetMaxLengthValue(java.lang.String maxLengthFacetValue)
MAX_LENGTH facet corresponding to
the attribute.setFacetMaxLengthValue in interface NodeDescriptionmaxLengthFacetValue - The value of the MAX_LENGTH
facet to be set.public java.lang.String getFacetMinExclusiveValue()
MIN_EXCLUSIVE facet corresponding to
the attribute.getFacetMinExclusiveValue in interface NodeDescriptionMIN_EXCLUSIVE facet.
Can be null.public void setFacetMinExclusiveValue(java.lang.String minExclusiveFacetValue)
MIN_EXCLUSIVE facet corresponding to
the attribute.setFacetMinExclusiveValue in interface NodeDescriptionminExclusiveFacetValue - The value of the MIN_EXCLUSIVE
facet to be set.public java.lang.String getFacetMinInclusiveValue()
MIN_INCLUSIVE facet corresponding to
the attribute.getFacetMinInclusiveValue in interface NodeDescriptionMIN_INCLUSIVE facet.
Can be null.public void setFacetMinInclusiveValue(java.lang.String minInclusiveFacetValue)
MIN_INCLUSIVE facet corresponding to
the attribute.setFacetMinInclusiveValue in interface NodeDescriptionminInclusiveFacetValue - The value of the MIN_INCLUSIVE
facet to be set.public java.lang.String getFacetMinLengthValue()
MIN_LENGTH facet corresponding to
the attribute.getFacetMinLengthValue in interface NodeDescriptionMIN_LENGTH facet.
Can be null.public void setFacetMinLengthValue(java.lang.String minLengthFacetValue)
MIN_LENGTH facet corresponding to
the attribute.setFacetMinLengthValue in interface NodeDescriptionminLengthFacetValue - The value of the MIN_LENGTH
facet to be set.public java.lang.String getFacetTotalDigitsValue()
TOTAL_DIGITS facet corresponding to
the attribute.getFacetTotalDigitsValue in interface NodeDescriptionTOTAL_DIGITS facet.
Can be null.public void setFacetTotalDigitsValue(java.lang.String totalDigitsFacetValue)
TOTAL_DIGITS facet corresponding to
the attribute.setFacetTotalDigitsValue in interface NodeDescriptiontotalDigitsFacetValue - The value of the TOTAL_DIGITS
facet to be set.public java.lang.String getFacetWhitespaceValue()
WHITESPACE facet corresponding to
the attribute.getFacetWhitespaceValue in interface NodeDescriptionWHITESPACE facet.
Can be null.public void setFacetWhitespaceValue(java.lang.String whitespaceFacetValue)
WHITESPACE facet corresponding to
the attribute.setFacetWhitespaceValue in interface NodeDescriptionwhitespaceFacetValue - The value of the WHITESPACE
facet to be set.public java.lang.String getFacetPattern()
PATTERN facet corresponding to
the attribute.getFacetPattern in interface NodeDescriptionPATTERN facet.
Can be null.public void setFacetPattern(java.lang.String patternFacets)
PATTERN facet corresponding to
the attribute.setFacetPattern in interface NodeDescriptionpatternFacets - The value of the PATTERN
facet to be set.public java.lang.String getModelDescription()
getModelDescription in interface NodeDescriptionnull.public void setModelDescription(java.lang.String modelDescription)
setModelDescription in interface NodeDescriptionmodelDescription - The model description of the attribute to be set.public void setDefaultValue(java.lang.String defaultValue)
defaultValue - The default value of the attribute.public void setOverridingDefaultValueProvider(CIAttribute.DefaultValueProvider defaultValueProvider)
defaultValueProvider - The default value provider.public void setPossiblesValues(java.util.List<java.lang.String> possiblesValues)
setPossiblesValues in interface NodeDescriptionpossiblesValues - The list of possible values to set.NodeDescription.setPossiblesValues(java.util.List)public void setRequired(boolean required)
required - If true the attribute is required.public void setNamespace(java.lang.String namespace)
namespace - The namespace to be set.public void setFixed(boolean fixed)
fixed - True if the attribute has a fixed value.public java.lang.String getAnnotation()
getAnnotation in interface NodeDescriptionnull.public void setAnnotation(java.lang.String annotation)
annotation - The annotation of the attribute, or null.public boolean isDeclareXmlns()
true if attribute should add an xmlns declaration.public void setDeclareXmlns(boolean declareXmlns)
declareXmlns - true if the attribute should add an xmlns declaration.public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix - The prefix to set.public void setAssertions(java.lang.String assertionsDescription)
NodeDescriptionsetAssertions in interface NodeDescriptionassertionsDescription - The string representing all assertions.NodeDescription.setAssertions(String)public java.lang.String getAssertions()
NodeDescriptiongetAssertions in interface NodeDescriptionNodeDescription.getAssertions()public void setOpenContentMode(java.lang.String mode)
NodeDescriptionsetOpenContentMode in interface NodeDescriptionmode - The mode of the open content.NodeDescription.setOpenContentMode(java.lang.String)public java.lang.String getOpenContentMode()
NodeDescriptiongetOpenContentMode in interface NodeDescriptionNodeDescription.getOpenContentMode()public void setOpenContentWildcardDescription(java.lang.String wildcardDescription)
NodeDescriptionsetOpenContentWildcardDescription in interface NodeDescriptionwildcardDescription - The wildcard description.NodeDescription.setOpenContentWildcardDescription(java.lang.String)public java.lang.String getOpenContentWildcardDescription()
NodeDescriptiongetOpenContentWildcardDescription in interface NodeDescriptionNodeDescription.getOpenContentWildcardDescription()public boolean isAttributeNameQualified()
true if the name of the attribute is a QName.
This means that it already contains the prefix before the local name.true if the attribute name is actually a QName.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionObject.clone()© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.