|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.BelongingImpl | +--com.beasys.commerce.foundation.property.PropertyMetaDataImpl
The PropertyMetaData is a Belonging that contains the meta data that describes a property that can be set on a ConfigurableEntity. The property name is not part of the class because it is stored as a key in the Map the Schema owns.
PropertyMetaData
,
PropertyMetaDataHome
, Serialized FormField Summary | |
protected java.lang.Object |
defaultValue
Used to keep track of the default value associated with this PropertyMetaData. |
java.lang.String |
description
Description is a textual description of the property. |
boolean |
isExplicit
Specifies whether the property is defined as a field of the ConfigurableEntity concrete implementation or as a dynamic property on the ConfigurableEntity. |
boolean |
isMultiValued
Specifies whether the property is single-valued or multi-valued. |
boolean |
isRestricted
Specifies whether the values that can be associated with this property are restricted or not. |
long |
propertyMetaDataId
Unique ID of this PropertyMetaData. |
PropertyType |
propertyType
Reference the PropertyType instance (either SingleValuePropertyType or MultiValuePropertyType object). |
protected java.util.HashSet |
restrictedValues
Used to keep track of the restricted values. |
long |
schemaId
Unique ID of the Schema that contains this PropertyMetaData. |
int |
type
Type is the data type of the property value. |
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
__classIdentifier,
__containingBelonging,
__containingEntity,
__mapKey,
__sequenceNumber,
_isDirty |
Constructor Summary | |
PropertyMetaDataImpl()
Default contructor. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compare this belonging to another |
java.lang.Object |
getDefaultValue()
Returns the default value for the propert. |
java.lang.String |
getDescription()
Get the value of description |
boolean |
getIsExplicit()
Get the value of isExplicit |
boolean |
getIsMultiValued()
Get the value of isMultiValued |
boolean |
getIsRestricted()
Get the value of isRestricted |
long |
getPropertyMetaDataId()
Get the value of propertyMetaDataId |
PropertyType |
getPropertyType()
Get the value of propertyType |
java.util.Collection |
getRestrictedValues()
Returns the collection of restricted values for the property. |
long |
getSchemaId()
Get the value of schemaId |
int |
getType()
Get the value of type |
java.lang.String |
interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model |
void |
setByValue(Belonging value)
It is possible to call set-by-value with a superclass. |
void |
setDefaultValue(java.lang.Object defaultValue)
Sets the default value for the property. |
void |
setDescription(java.lang.String description)
Set the value of description |
void |
setIsExplicit(boolean isExplicit)
Set the value of isExplicit |
void |
setIsMultiValued(boolean isMultiValued)
Set the value of isMultiValued |
void |
setIsRestricted(boolean isRestricted)
Set the value of isRestricted |
void |
setPropertyMetaDataId(long propertyMetaDataId)
Set the value of propertyMetaDataId |
void |
setPropertyType(PropertyType propertyType)
Set the value of propertyType |
void |
setRestrictedValues(java.util.Collection restrictedValues)
Sets the collection of restricted values for the property. |
void |
setSchemaId(long schemaId)
Set the value of schemaId |
void |
setType(int type)
Set the value of type |
boolean |
validate(java.lang.Object value)
|
Belonging |
value()
value() is a more typesafe implementation of clone() |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.Object defaultValue
protected java.util.HashSet restrictedValues
public long propertyMetaDataId
public long schemaId
public java.lang.String description
public boolean isExplicit
public boolean isMultiValued
public boolean isRestricted
public PropertyType propertyType
public int type
TypesHelper
Constructor Detail |
public PropertyMetaDataImpl()
Method Detail |
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- description to be addedpublic boolean getIsExplicit()
public void setIsExplicit(boolean isExplicit)
isExplicit
- isExplicit to be addedpublic boolean getIsMultiValued()
public void setIsMultiValued(boolean isMultiValued)
isMultiValued
- isMultiValued to be addedpublic boolean getIsRestricted()
public void setIsRestricted(boolean isRestricted)
isRestricted
- isRestricted to be addedpublic PropertyType getPropertyType()
public void setPropertyType(PropertyType propertyType)
propertyType
- propertyType to be addedpublic int getType()
public void setType(int type)
type
- type to be addedpublic Belonging value()
public java.lang.String interfaceName()
public void setByValue(Belonging value)
It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.
belonging
- The Belonging
to use for initialization.public int compareTo(java.lang.Object o)
o
- target object for comparisionpublic boolean validate(java.lang.Object value)
public java.lang.Object getDefaultValue()
public java.util.Collection getRestrictedValues()
public void setDefaultValue(java.lang.Object defaultValue)
public void setRestrictedValues(java.util.Collection restrictedValues)
public long getPropertyMetaDataId()
public void setPropertyMetaDataId(long propertyMetaDataId)
propertyMetaDataId
- propertyMetaDataId to be addedpublic long getSchemaId()
public void setSchemaId(long schemaId)
schemaId
- schemaId to be added
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |