|
© 2001 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 Form| Field 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 |
| Methods inherited from interface com.beasys.commerce.foundation.Belonging |
clone, equals |
| 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()
getDescription in interface PropertyMetaDatapublic void setDescription(java.lang.String description)
setDescription in interface PropertyMetaDatadescription - description to be addedpublic boolean getIsExplicit()
getIsExplicit in interface PropertyMetaDatapublic void setIsExplicit(boolean isExplicit)
setIsExplicit in interface PropertyMetaDataisExplicit - isExplicit to be addedpublic boolean getIsMultiValued()
getIsMultiValued in interface PropertyMetaDatapublic void setIsMultiValued(boolean isMultiValued)
setIsMultiValued in interface PropertyMetaDataisMultiValued - isMultiValued to be addedpublic boolean getIsRestricted()
getIsRestricted in interface PropertyMetaDatapublic void setIsRestricted(boolean isRestricted)
setIsRestricted in interface PropertyMetaDataisRestricted - isRestricted to be addedpublic PropertyType getPropertyType()
getPropertyType in interface PropertyMetaDatapublic void setPropertyType(PropertyType propertyType)
setPropertyType in interface PropertyMetaDatapropertyType - propertyType to be addedpublic int getType()
getType in interface PropertyMetaDatapublic void setType(int type)
setType in interface PropertyMetaDatatype - type to be addedpublic Belonging value()
value in interface Belongingpublic java.lang.String interfaceName()
interfaceName in interface Belongingpublic 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.
setByValue in interface BelongingsetByValue in class BelongingImplcom.beasys.commerce.foundation.Belongingbelonging - The Belonging to use for initialization.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class BelongingImplo - target object for comparisionpublic boolean validate(java.lang.Object value)
public java.lang.Object getDefaultValue()
getDefaultValue in interface PropertyMetaDatapublic java.util.Collection getRestrictedValues()
getRestrictedValues in interface PropertyMetaDatapublic void setDefaultValue(java.lang.Object defaultValue)
setDefaultValue in interface PropertyMetaDatapublic void setRestrictedValues(java.util.Collection restrictedValues)
setRestrictedValues in interface PropertyMetaDatapublic long getPropertyMetaDataId()
public void setPropertyMetaDataId(long propertyMetaDataId)
propertyMetaDataId - propertyMetaDataId to be addedpublic long getSchemaId()
public void setSchemaId(long schemaId)
schemaId - schemaId to be added
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||