|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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 FormField 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 | |
protected |
SOMAttribute(org.xml.sax.Attributes attrs,
SOMObject parent)
constructor for use with SAX parser, loading SOM from a file. |
|
SOMAttribute(java.lang.String name)
Construct an <attribute> where type is defaulted to SOMType.STRING |
|
SOMAttribute(java.lang.String name,
SOMType type)
Construct an <attribute> |
Method Summary | |
java.util.Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
java.lang.String |
getDefault()
get the "default" attribute. |
java.lang.String |
getFixed()
get the "fixed" attribute. |
java.lang.String |
getID()
<xsd:attribute> |
short |
getUse()
get the "use" attribute. |
java.lang.String |
getUseString()
get the "use" attribute. |
java.lang.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(java.lang.String p_use)
set the use attribute. |
void |
setValue(java.lang.String p_value)
Deprecated. "fixed" and "default" attributes replaced "value" |
Methods inherited from class com.bea.schema.SOMBasic |
addAnnotation,
addAnnotation,
addChild,
addComplexType,
addDocumentation,
addSequence,
addSimpleType,
getForm,
getName,
getRef,
getType,
isRef,
isValidatingContent,
removeAnnotation,
setDefault,
setFixed,
setForm,
setName,
setRef,
setRef,
toXML |
Methods inherited from class com.bea.schema.SOMObject |
attributesToXML,
doIndent,
getID_UQ,
getParent,
getParentSchema,
isCircularReference,
isSchemaChild,
setIndent,
setParent,
toString,
toXML,
toXML,
toXML,
trace,
trace |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
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(java.lang.String name)
name
- <attribute name="...">public SOMAttribute(java.lang.String name, SOMType type)
name
- <attribute name="...">type
- <attribute type="..."> If the type parameter is null,
the default type is set to SOMType.STRING.protected SOMAttribute(org.xml.sax.Attributes attrs, SOMObject parent)
attrs
- Method Detail |
public SOMType setType(SOMType type)
type
- public void setUse(java.lang.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(java.lang.String p_value)
p_value
- public short getUse()
public java.lang.String getUseString()
public java.lang.String getValue()
public java.lang.String getFixed()
public java.lang.String getDefault()
public java.lang.String getID()
public java.util.Map getAttributes(boolean getAll)
getAll
- get all attributes
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |