|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.schema.SOMObject
com.bea.schema.SOMBasic
com.bea.schema.SOMAttribute
<attribute> The XML representation for an attribute declaration schema component is an <attribute> element information item. It specifies a simple type definition for an attribute either by reference or explicitly, and may provide default information.
SOMSchema,
Serialized Form| Field Summary | |
static short |
DEFAULT
Deprecated. replaced by default attribute |
static short |
FIXED
Deprecated. replaced by fixed attribute |
static short |
OPTIONAL
|
static short |
PROHIBITED
|
static short |
REQUIRED
|
| Constructor Summary | |
SOMAttribute(String name)
Construct an <attribute> where type is defaulted to SOMType.STRING |
|
SOMAttribute(String name,
SOMType type)
Construct an <attribute> |
|
| Method Summary | |
Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
String |
getDefault()
get the "default" attribute. |
String |
getFixed()
get the "fixed" attribute. |
String |
getID()
<xsd:attribute> |
short |
getUse()
get the "use" attribute. |
String |
getUseString()
get the "use" attribute. |
String |
getValue()
Deprecated. "fixed" and "default" attributes replaced "value" |
SOMType |
setType(SOMType type)
Valid types for SOMAttribute are SOMElementalType's, SOMSimpleType, and SOMAnnotation |
void |
setUse(short p_use)
set the use attribute. |
void |
setUse(String p_use)
set the use attribute. |
void |
setValue(String p_value)
Deprecated. "fixed" and "default" attributes replaced "value" |
| Methods inherited from class com.bea.schema.SOMBasic |
addAnnotation, addAnnotation, addComplexType, addDocumentation, addSequence, addSimpleType, contains, createDefault, getAnnotation, getForm, getName, getRef, getType, getTypeName, isRef, isValidatingContent, removeAnnotation, setDefault, setFixed, setForm, setName, setRef, setRef, toXML |
| Methods inherited from class com.bea.schema.SOMObject |
addPrefixMapping, getContainmentXPath, getEffectivePrefixMappings, getID_UQ, getParent, getParentName, getParentSchema, getPrefixForTargetNamespace, getPrefixMapping, getTargetNamespace, getURIForPrefix, isCircularReference, isSchemaChild, msg, msg, removeNamespaceQualifier, removePrefixMapping, setIndent, setParent, setTargetNamespace, toString, toXML, toXML, toXML |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final short OPTIONAL
public static final short PROHIBITED
public static final short REQUIRED
public static final short DEFAULT
public static final short FIXED
| Constructor Detail |
public SOMAttribute(String name)
name - <attribute name="...">
public SOMAttribute(String name,
SOMType type)
name - <attribute name="...">type - <attribute type="..."> If the type parameter is null,
the default type is set to SOMType.STRING.| Method Detail |
public SOMType setType(SOMType type)
setType in class SOMBasictype -
public void setUse(String p_use)
p_use - optional, prohibited, required, default, and fixed.public void setUse(short p_use)
p_use - OPTIONAL, PROHIBITED, REQUIRED, DEFAULT, and FIXED.public void setValue(String p_value)
p_value - public short getUse()
public String getUseString()
public String getValue()
public String getFixed()
getFixed in class SOMBasicpublic String getDefault()
getDefault in class SOMBasicpublic String getID()
getID in interface SOMReferencegetID in class SOMObjectpublic Map getAttributes(boolean getAll)
getAttributes in class SOMBasicgetAll - get all attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||