|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.content.document.ref.DefaultDocumentSchema
A concrete, base implementation of a document schema.
Nested Class Summary | |
static class |
DefaultDocumentSchema.PropertyInfo
Deprecated. Helper data structure. |
Field Summary | |
protected String |
description
Deprecated. The schema description. |
protected String |
name
Deprecated. The schema name. |
protected Map |
properties
Deprecated. The map of property name to property info. |
Fields inherited from interface com.bea.p13n.content.document.spi.DocumentSchemaDef |
BOOLEAN, DATETIME, FLOAT, INTEGER, TEXT, USER_DEFINED |
Constructor Summary | |
DefaultDocumentSchema(String name)
Deprecated. Constructor. |
Method Summary | |
Object |
getAttributeDefaultValue(String name)
Deprecated. Get the default value for the attribute. |
String |
getAttributeDescription(String name)
Deprecated. Get the description for the named attribute. |
Collection |
getAttributeNames()
Deprecated. Get the list of valid property names. |
List |
getAttributePossibleValues(String name)
Deprecated. Get the possible values for the attribute. |
int |
getAttributeType(String name)
Deprecated. Get the attribute type. |
String |
getDescription()
Deprecated. Get the schema description. |
String |
getName()
Deprecated. Get the schema name. |
DefaultDocumentSchema.PropertyInfo |
getPropertyInfo(String name)
Deprecated. Get the info for the named property. |
boolean |
isAttributeMultiValued(String name)
Deprecated. Determine if the attribute is multi-valued. |
void |
setDescription(String d)
Deprecated. Set the schema description. |
void |
setName(String name)
Deprecated. Set the schema name. |
void |
setProperty(String name,
int type,
Object defValue,
boolean isMultiValued,
List possibleValues,
String description)
Deprecated. Set the info the named property. |
void |
setPropertyInfo(String name,
DefaultDocumentSchema.PropertyInfo info)
Deprecated. Set the info for the named property. |
static boolean |
validateAttribute(DefaultDocumentSchema.PropertyInfo info,
Object value)
Deprecated. Validate the attribute value against the given property info. |
static boolean |
validateAttribute(int type,
Object value)
Deprecated. Validate the attribute value against the specified type. |
boolean |
validateAttribute(String name,
Object value)
Deprecated. Validate the specified attribute against the given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String name
protected String description
protected Map properties
Constructor Detail |
public DefaultDocumentSchema(String name)
Method Detail |
public String getName()
getName
in interface DocumentSchemaDef
public void setName(String name)
public String getDescription()
getDescription
in interface DocumentSchemaDef
public void setDescription(String d)
public void setPropertyInfo(String name, DefaultDocumentSchema.PropertyInfo info)
name
- the property name.info
- the property info (null to remove).public void setProperty(String name, int type, Object defValue, boolean isMultiValued, List possibleValues, String description)
public DefaultDocumentSchema.PropertyInfo getPropertyInfo(String name) throws DocumentException
name
- the property name.
DocumentException
- thrown if the propert info doesn't exist.public Collection getAttributeNames()
getAttributeNames
in interface DocumentSchemaDef
public int getAttributeType(String name) throws DocumentException
getAttributeType
in interface DocumentSchemaDef
name
- the name of the attribute.
DocumentException
- thrown on an error.DocumentSchemaDef.TEXT
,
DocumentSchemaDef.INTEGER
,
DocumentSchemaDef.FLOAT
,
DocumentSchemaDef.BOOLEAN
,
DocumentSchemaDef.DATETIME
,
DocumentSchemaDef.USER_DEFINED
public Object getAttributeDefaultValue(String name) throws DocumentException
getAttributeDefaultValue
in interface DocumentSchemaDef
name
- the name of the attribute.
DocumentException
- thrown on an error.public String getAttributeDescription(String name) throws DocumentException
getAttributeDescription
in interface DocumentSchemaDef
name
- the name of the attribute.
DocumentException
- thrown on an error.public boolean isAttributeMultiValued(String name) throws DocumentException
isAttributeMultiValued
in interface DocumentSchemaDef
name
- the name of the attribute.
DocumentException
- thrown on an error.public List getAttributePossibleValues(String name) throws DocumentException
getAttributePossibleValues
in interface DocumentSchemaDef
name
- the name of the attribute.
DocumentException
- thrown on an error.public boolean validateAttribute(String name, Object value) throws DocumentException
validateAttribute
in interface DocumentSchemaDef
name
- the name of the attribute.value
- the suggested value for the attribute.
DocumentException
- thrown on an error.public static boolean validateAttribute(DefaultDocumentSchema.PropertyInfo info, Object value)
public static boolean validateAttribute(int type, Object value)
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |