com.beasys.commerce.foundation.property
Interface PropertyType
- All Known Subinterfaces:
- MultiValuePropertyType, SingleValuePropertyType
- All Known Implementing Classes:
- PropertyTypeImpl
- public interface PropertyType
- extends Belonging
This Interface provides a mechanism for validating a property. The object that is passed in is validated as to whether it matches some specific programmer defined criteria. A number of standard validators can be shipped that will make it easier for the developer.
Attribute: description
- Containment: By Value
- Multiplicity: 1:1
Attribute: type
- Containment: By Value
- Multiplicity: 1:1
- See Also:
PropertyTypeHome
,
PropertyTypeImpl
Method Summary |
java.lang.String |
getDescription()
Get the value of description |
int |
getType()
Get the value of type |
void |
setDescription(java.lang.String description)
Set the value of description |
void |
setType(int type)
Set the value of type |
boolean |
validate(java.lang.Object value,
java.util.Collection restrictedValues)
|
Methods inherited from interface java.lang.Comparable |
compareTo |
getDescription
public java.lang.String getDescription()
- Get the value of description
- Returns:
- description.
setDescription
public void setDescription(java.lang.String description)
- Set the value of description
- Parameters:
description
- description to be added
getType
public int getType()
- Get the value of type
- Returns:
- type.
setType
public void setType(int type)
- Set the value of type
- Parameters:
type
- type to be added
validate
public boolean validate(java.lang.Object value,
java.util.Collection restrictedValues)
Copyright © 2000 BEA Systems, Inc. All Rights Reserved