|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.schema.SchemaObject
Schema object container. Holds a Type object (Simple or Complex) and the Locale in which all displayable strings contained can be expected to be represented.
Field Summary | |
private String |
locale
|
private Type |
type
|
Constructor Summary | |
SchemaObject()
Create a new empty schema object |
|
SchemaObject(ComplexType ct)
Create a schema object that wraps a ComplexType |
|
SchemaObject(SimpleType st)
Create a schema object that wraps a SimpleType |
Method Summary | |
ComplexType |
getComplexType()
Get the associated ComplexType object. |
String |
getLocale()
Get the locale property value |
SimpleType |
getSimpleType()
Get the associated SimpleType object. |
Type |
getType()
Get the enclosed Type object. |
boolean |
isComplex()
Determines if this object contains a ComplexType |
boolean |
isSimple()
Determines if this object contains a SimpleType |
void |
setComplexType(ComplexType ct)
Set the enclosed type to a ComplexType object. |
void |
setLocale(String s)
Set the locale property value |
void |
setSimpleType(SimpleType st)
Set the enclosed type to a SimpleType object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String locale
private Type type
Constructor Detail |
public SchemaObject()
public SchemaObject(SimpleType st)
st
- the simple typepublic SchemaObject(ComplexType ct)
ct
- the complex typeMethod Detail |
public void setLocale(String s)
s
- the new property valuepublic String getLocale()
public void setSimpleType(SimpleType st)
st
- the SimpleType objectisSimple()
public SimpleType getSimpleType()
If the isSimple method returns true it can be expected that the output of this method will not be null.
isSimple()
public void setComplexType(ComplexType ct)
ct
- the ComplexType objectisComplex()
public ComplexType getComplexType()
If the isComplex method returns true it can be expected that the output of this method will not be null.
isComplex()
public boolean isSimple()
public boolean isComplex()
public Type getType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |