public interface CentraSiteSlotDescription extends CentraSiteAttribute
MAXOCCURS_1, MAXOCCURS_UNBOUNDED, MINOCCURS_0, MINOCCURS_1
Modifier and Type | Method and Description |
---|---|
void |
addTriggerDescription(CentraSiteTriggerDescription trigger)
Deprecated.
|
void |
checkValidLocalName(java.lang.String value,
java.util.Locale lc)
Checks string whether a valid local name for a type definition.
|
void |
checkValidValue(java.lang.String value)
Checks string whether a valid value for this slot.
|
void |
clearTriggers()
Deprecated.
|
java.lang.String |
getDataType()
Returns the data type which is an XML schema type.
|
java.lang.String |
getDisplayName()
Returns the attribute's display name.
|
java.lang.String[] |
getEnumValues()
Gets enumeration values.
|
java.lang.String |
getLocalName()
Gets the slot local name (no namespace).
|
java.lang.String |
getName()
Returns the slot name as {uri}local-name.
|
int |
getPrecision()
Gets the precision for a "number" slot.
|
java.util.Collection |
getTriggerDescriptions()
Deprecated.
|
java.lang.String |
getUnitLabel()
Returns this slot's unit label.
|
boolean |
hasTriggers()
Deprecated.
|
boolean |
hasValidInputFields()
Returns whether the input fields valid.
|
boolean |
isFullySpecified()
Returns whether the slot fully specified.
|
boolean |
isIndexed()
Returns whether a database index is defined for this slot.
|
boolean |
isLongString()
Returns whether the LongString option is set.
|
boolean |
isPredefined()
Returns the isPredefined setting which says whether the attribute is predefine.
|
boolean |
isPrefix()
Returns whether this slot's unit label is a prefix or suffix value.
|
boolean |
isRequired()
Returns the isRequired setting which says whether the attribute is required.
|
boolean |
isSystemDefined()
Returns whether this slot is system defined.
|
boolean |
isUsed()
Returns whether this slot is used by at least one instance of the corresponding type.
|
void |
setDataType(java.lang.String type)
Sets the data type.
|
void |
setDisplayName(java.lang.String displayName)
Sets the attribute's display name.
|
void |
setEnumValues(java.lang.String[] enumValues)
Sets enumeration values.
|
void |
setIndexed(boolean indexed)
Sets this slot's indexed option.
|
void |
setLongString(boolean longString)
Sets the LongString option.
|
void |
setName(java.lang.String name)
Sets the slot name.
|
void |
setPrecision(int precision)
Sets the precision for a "number" slot.
|
void |
setPredefined(boolean systemDefined)
Set this slot's system predefined option.
|
void |
setPrefix(boolean prefix)
Specifies whether this slot's unit label is to be a prefix or suffix value.
|
void |
setRequired(boolean isRequired)
Sets the isRequired value.
|
void |
setSystemDefined(boolean systemDefined)
Sets this slot's system defined option.
|
void |
setUnitLabel(java.lang.String unitLabel)
Sets this slot's unit label.
|
java.lang.String |
toXML()
Gets XML representation (schema).
|
getDefaultValue, getDescription, getMaxOccurs, getMinOccurs, hasDefaultValue, isReadOnly, setDefaultValue, setDescription, setMaxOccurs, setMinOccurs, setReadOnly
java.lang.String getName()
getName
in interface CentraSiteAttribute
void setName(java.lang.String name)
setName
in interface CentraSiteAttribute
name
- the slot namejava.lang.String getLocalName()
getLocalName
in interface CentraSiteAttribute
void setDisplayName(java.lang.String displayName)
displayName
- the attribute's display namejava.lang.String getDisplayName()
getDisplayName
in interface CentraSiteAttribute
java.lang.String getDataType()
void setDataType(java.lang.String type)
type
- the data typejava.lang.String[] getEnumValues()
void setEnumValues(java.lang.String[] enumValues)
enumValues
- enumeration valuesvoid clearTriggers()
boolean hasTriggers()
void addTriggerDescription(CentraSiteTriggerDescription trigger)
trigger
- trigger to addjava.util.Collection getTriggerDescriptions()
java.lang.String toXML() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs.boolean hasValidInputFields()
boolean isFullySpecified()
void checkValidLocalName(java.lang.String value, java.util.Locale lc) throws java.lang.Exception
value
- the string to be checkedlc
- the current locale object.java.lang.Exception
- if an internal error occurs.void checkValidValue(java.lang.String value) throws java.lang.Exception
value
- the string to be checkedjava.lang.Exception
- if an internal error occurs.boolean isSystemDefined()
isSystemDefined
in interface CentraSiteAttribute
void setSystemDefined(boolean systemDefined)
systemDefined
- true if this slot is system definedboolean isIndexed()
void setIndexed(boolean indexed)
indexed
- true if a database index is to be created for this slotvoid setUnitLabel(java.lang.String unitLabel)
unitLabel
- the unit labeljava.lang.String getUnitLabel()
void setPrefix(boolean prefix)
prefix
- true if the unit label is a prefix, false for suffix.boolean isPrefix()
boolean isUsed() throws javax.xml.registry.JAXRException
isUsed
in interface CentraSiteAttribute
javax.xml.registry.JAXRException
- if an internal error occurs.void setPrecision(int precision) throws javax.xml.registry.JAXRException
precision
- the precisionjavax.xml.registry.JAXRException
- if an internal error occurs.int getPrecision() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs.boolean isLongString()
void setLongString(boolean longString)
longString
- true if the LongString option is to be setboolean isRequired()
isRequired
in interface CentraSiteAttribute
void setRequired(boolean isRequired)
setRequired
in interface CentraSiteAttribute
isRequired
- the isRequired value to setboolean isPredefined()
isPredefined
in interface CentraSiteAttribute
void setPredefined(boolean systemDefined)
systemDefined
- true if this slot is system defined