|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.model.PropertyDefinition<T>
public class PropertyDefinition<T>
| Constructor Summary | |
|---|---|
PropertyDefinition()
|
|
PropertyDefinition(String id,
String queryName,
String localName,
String localNamespace,
String displayName,
String description,
PropertyType propertyType,
Updatability updatability,
boolean inherited,
boolean required,
boolean queryable,
boolean orderable,
Boolean openChoice,
boolean multivalued,
List<Choice<T>> choices,
T[] defaultValue)
|
|
| Method Summary | |
|---|---|
List<Choice<T>> |
getChoices()
|
DateResolution |
getDateResolution()
|
Precision |
getDecimalPrecision()
|
T[] |
getDefaultValue()
|
String |
getDescription()
Optional property description. |
String |
getDisplayName()
Optional property display name. |
String |
getId()
|
Boolean |
getInherited()
Is property inherited from the super type or defined directly for type provides property definition. |
String |
getLocalName()
Local (internal) property name. |
String |
getLocalNamespace()
Local (internal) name-space for property. |
BigDecimal |
getMaxDecimal()
|
BigInteger |
getMaxInteger()
|
int |
getMaxLength()
|
BigDecimal |
getMinDecimal()
|
BigInteger |
getMinInteger()
|
PropertyType |
getPropertyType()
|
String |
getQueryName()
Property Query name. |
Updatability |
getUpdatability()
When property may be updated. |
boolean |
isMultivalued()
Indicates is property id multi-valued or not. |
Boolean |
isOpenChoice()
Indicates is choice for property value is open. |
boolean |
isOrderable()
Is property orderable. |
boolean |
isQueryable()
Is property queryable. |
boolean |
isRequired()
Is property required. |
void |
setChoices(List<Choice<T>> choices)
|
void |
setDateResolution(DateResolution dateResolution)
|
void |
setDecimalPrecision(Precision decimalPrecision)
|
void |
setDefaultValue(T[] defaultValue)
|
void |
setDescription(String description)
|
void |
setDisplayName(String displayName)
|
void |
setId(String id)
|
void |
setInherited(boolean inherited)
|
void |
setLocalName(String localName)
|
void |
setLocalNamespace(String localNamespace)
|
void |
setMaxDecimal(BigDecimal maxDecimal)
|
void |
setMaxInteger(BigInteger maxInteger)
|
void |
setMaxLength(int maxLength)
|
void |
setMinDecimal(BigDecimal minDecimal)
|
void |
setMinInteger(BigInteger minInteger)
|
void |
setMultivalued(boolean multivalued)
|
void |
setOpenChoice(Boolean openChoice)
|
void |
setOrderable(boolean orderable)
|
void |
setPropertyType(PropertyType propertyType)
|
void |
setQueryable(boolean queryable)
|
void |
setQueryName(String queryName)
|
void |
setRequired(boolean required)
|
void |
setUpdatability(Updatability updatability)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyDefinition(String id,
String queryName,
String localName,
String localNamespace,
String displayName,
String description,
PropertyType propertyType,
Updatability updatability,
boolean inherited,
boolean required,
boolean queryable,
boolean orderable,
Boolean openChoice,
boolean multivalued,
List<Choice<T>> choices,
T[] defaultValue)
public PropertyDefinition()
| Method Detail |
|---|
public String getId()
public String getQueryName()
public String getLocalName()
public String getLocalNamespace()
public String getDisplayName()
null if not providedpublic String getDescription()
null if not providedpublic PropertyType getPropertyType()
PropertyTypepublic Updatability getUpdatability()
Updatabilitypublic Boolean getInherited()
true if inherited false otherwisepublic boolean isRequired()
true if property required false
otherwisepublic boolean isQueryable()
WHERE
clause of SQL statement.
true if property queryable false
otherwisepublic boolean isOrderable()
ORDER
clause of SQL statement.
true if property orderable false
otherwisepublic Boolean isOpenChoice()
false then
value of property must be one of provided by getChoices() If
true then value of can be other then provided by method
described above. This attribute should be provide only for properties that
provides choices (method getChoices() returns other then
null or empty list). For other properties this method should
return null.
true if choice of value of property is open
false otherwise and null for properties
that not provide choicespublic List<Choice<T>> getChoices()
Choicepublic DateResolution getDateResolution()
nullpublic Precision getDecimalPrecision()
BigDecimal and should be nullpublic T[] getDefaultValue()
public BigDecimal getMaxDecimal()
BigDecimal properties. There is no sense
for properties other then BigDecimal and should be
null. ConstraintException should be throw is
application tries set value greater then this valuepublic BigDecimal getMinDecimal()
BigDecimal properties. There is no sense
for properties other then BigDecimal and should be
null. ConstraintException should be throw is
application tries set value lower then this valuepublic BigInteger getMaxInteger()
BigInteger properties. There is no sense
for properties other then BigInteger and should be
null. ConstraintException should be throw is
application tries set value greater then this valuepublic BigInteger getMinInteger()
BigInteger properties. There is no sense
for properties other then BigInteger and should be
null. ConstraintException should be throw is
application tries set value lower then this valuepublic int getMaxLength()
public boolean isMultivalued()
true if property is multi-valued and
false otherwisepublic void setId(String id)
public void setQueryName(String queryName)
public void setLocalName(String localName)
public void setLocalNamespace(String localNamespace)
public void setDisplayName(String displayName)
public void setDescription(String description)
public void setPropertyType(PropertyType propertyType)
public void setUpdatability(Updatability updatability)
public void setInherited(boolean inherited)
public void setRequired(boolean required)
public void setQueryable(boolean queryable)
public void setOrderable(boolean orderable)
public void setOpenChoice(Boolean openChoice)
public void setMultivalued(boolean multivalued)
public void setChoices(List<Choice<T>> choices)
public void setDateResolution(DateResolution dateResolution)
public void setDecimalPrecision(Precision decimalPrecision)
public void setDefaultValue(T[] defaultValue)
public void setMaxLength(int maxLength)
public void setMinInteger(BigInteger minInteger)
public void setMaxInteger(BigInteger maxInteger)
public void setMinDecimal(BigDecimal minDecimal)
public void setMaxDecimal(BigDecimal maxDecimal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||