|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.SDOType
public class SDOType
Nested Class Summary | |
---|---|
static class |
SDOType.TypeInstantiationPolicy
|
Constructor Summary | |
---|---|
SDOType(commonj.sdo.helper.HelperContext helperContext)
|
|
SDOType(SDOTypeHelper sdoTypeHelper)
|
|
SDOType(String uri,
String type_name)
INTERNAL: Build up a Type with given name and uri and a default static HelperContext. |
|
SDOType(String uri,
String name,
SDOTypeHelper sdoTypeHelper)
Build up a Type with given name and uri |
Method Summary | |
---|---|
void |
addAliasName(String name)
INTERNAL: Assign a unique string to a type, which belongs to same uri, among types. |
void |
addBaseType(SDOType type)
INTERNAL: |
void |
addDeclaredProperty(commonj.sdo.Property property)
INTERNAL: |
void |
addDeclaredProperty(commonj.sdo.Property property,
int index)
INTERNAL: |
void |
addDeclaredProperty(SDOProperty property)
INTERNAL: |
void |
addDeclaredProperty(SDOProperty property,
int index)
INTERNAL: |
Object |
get(commonj.sdo.Property property)
|
List |
getAliasNames()
|
List |
getAppInfoElements()
INTERNAL: |
Map |
getAppInfoMap()
INTERNAL: |
List |
getBaseTypes()
|
SDOProperty |
getChangeSummaryProperty()
INTERNAL: |
List |
getDeclaredProperties()
|
Map |
getDeclaredPropertiesMap()
INTERNAL: |
commonj.sdo.helper.HelperContext |
getHelperContext()
Return the HelperContext object associated with this type. |
Class |
getImplClass()
INTERNAL: |
String |
getImplClassName()
INTERNAL: |
Class |
getInstanceClass()
|
String |
getInstanceClassName()
INTERNAL: Returns the Java class name that this type represents. |
List |
getInstanceProperties()
|
String |
getName()
|
List |
getNonFinalizedMappingURIs()
INTERNAL: |
List |
getNonFinalizedReferencingProps()
INTERNAL: |
List |
getProperties()
|
SDOProperty[] |
getPropertiesArray()
INTERNAL: |
SDOProperty |
getProperty(String propertyName)
|
Map |
getPropertyValues()
INTERNAL: |
Object |
getPseudoDefault()
INTERNAL: Return the wrapped initial value for the primitive numeric (when not defined) See p.45 of Java Spec 4th edition. |
QName |
getQName()
|
List |
getSubTypes()
INTERNAL: |
String |
getURI()
|
XMLDescriptor |
getXmlDescriptor()
|
String |
getXsdLocalName()
INTERNAL: Returns the local name of the Property. |
QName |
getXsdType()
INTERNAL: |
void |
initializeNamespaces(List namespaceResolvers)
INTERNAL: Get the XMLDescriptor associated with this Type or generate a new one. |
boolean |
isAbstract()
|
boolean |
isChangeSummaryType()
|
boolean |
isDataObjectType()
|
boolean |
isDataType()
|
boolean |
isFinalized()
INTERNAL: |
boolean |
isInstance(Object object)
|
boolean |
isOpen()
|
boolean |
isOpenSequencedType()
|
boolean |
isSequenced()
|
boolean |
isSubType()
INTERNAL: Provide a means to determine if this type has base types without causing the base types property to be initialized. |
boolean |
isTypeType()
|
boolean |
isWrapperType()
|
boolean |
isXsd()
INTERNAL: Returns if this property was declared in an XML schema. |
boolean |
isXsdList()
INTERNAL: Indicates if this Type is an xsd:list in the schema |
void |
postInitialize()
INTERNAL: |
void |
preInitialize(String packageName,
List namespaceResolvers)
INTERNAL: For this Type generate classes |
void |
removeDeclaredProperties(commonj.sdo.Property p)
INTERNAL: |
void |
setAbstract(boolean makeAbstract)
INTERNAL: Change this Type's abstract setting. |
void |
setAliasNames(List names)
INTERNAL: Assign a list of alias names to a type, which are unique in URI. |
void |
setAppInfoElements(List appInfoElementsList)
INTERNAL: |
void |
setBaseTypes(List bTypes)
INTERNAL: Set a list of Types as This Type's base Types. |
void |
setDataType(boolean datatype)
INTERNAL: Set this Type to a simple Type by passing in boolean value true. |
void |
setFinalized(boolean bFinalized)
INTERNAL: |
void |
setImplClassName(String implClassName)
INTERNAL: |
void |
setInstanceClass(Class aClass)
INTERNAL: Sets the Java class that this type represents. |
void |
setInstanceClassName(String instanceClassName)
INTERNAL: Sets the name of the Java class that this type represents. |
void |
setInstanceProperty(commonj.sdo.Property property,
Object value)
INTERNAL: |
void |
setMixed(boolean isMixed)
|
void |
setNonFinalizedMappingURIs(List nonFinalizedMappingURIsList)
INTERNAL: |
void |
setNonFinalizedReferencingProps(List nonFinalizedReferencingProps)
INTERNAL: |
void |
setOpen(boolean bOpen)
INTERNAL: Make this Type an opened Type to allow open content by assigning true value or a Type not to accept any additional properties by assigning false value, isOpen() . |
void |
setPropertyValues(Map properties)
INTERNAL: |
void |
setPseudoDefault(Object anObject)
INTERNAL: Set an Object wrapper around primitive numeric types |
void |
setQName(QName qName)
|
void |
setSequenced(boolean sequenced)
INTERNAL: If set as true, this Type specifies Sequenced DataObjects. |
void |
setSubTypes(List subTypesList)
INTERNAL: |
void |
setupInheritance(SDOType parentType)
|
void |
setXmlDescriptor(XMLDescriptor anXMLDescriptor)
INTERNAL: Set the XMLDescriptor on this Type |
void |
setXsd(boolean bXsd)
INTERNAL: Set if this property was declared in an XML schema. |
void |
setXsdList(boolean anXsdList)
INTERNAL: Set if this type is an xsd:list in the schema |
void |
setXsdLocalName(String xsdLocalNameString)
INTERNAL: Set the local name of this property. |
void |
setXsdType(QName xsdTypeQName)
INTERNAL: |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDOType(commonj.sdo.helper.HelperContext helperContext)
public SDOType(SDOTypeHelper sdoTypeHelper)
public SDOType(String uri, String type_name)
SDOType(uri, typeName, aHelperContext)
instead
uri
- the URI of this typetype_name
- the unique of this Typepublic SDOType(String uri, String name, SDOTypeHelper sdoTypeHelper)
uri
- the URI of this typetype_name
- the unique of this TypeaContext
- the current HelperContextMethod Detail |
---|
public QName getQName()
public void setQName(QName qName)
public String getName()
getName
in interface commonj.sdo.Type
public String getURI()
getURI
in interface commonj.sdo.Type
public Class getInstanceClass()
getInstanceClass
in interface commonj.sdo.Type
public boolean isInstance(Object object)
isInstance
in interface commonj.sdo.Type
public List getProperties()
getProperties
in interface commonj.sdo.Type
public SDOProperty getProperty(String propertyName)
getProperty
in interface commonj.sdo.Type
public boolean isDataType()
isDataType
in interface commonj.sdo.Type
public boolean isOpen()
isOpen
in interface commonj.sdo.Type
public boolean isSequenced()
isSequenced
in interface commonj.sdo.Type
public boolean isAbstract()
isAbstract
in interface commonj.sdo.Type
public List getBaseTypes()
getBaseTypes
in interface commonj.sdo.Type
public boolean isSubType()
public List getDeclaredProperties()
getDeclaredProperties
in interface commonj.sdo.Type
public List getAliasNames()
getAliasNames
in interface commonj.sdo.Type
public void addAliasName(String name)
name
- a unique string representing a type.public void setAliasNames(List names)
names
- a unique string representing a type.public void setOpen(boolean bOpen)
isOpen()
.
bOpen
- boolean value implying if this Type is openpublic void setAbstract(boolean makeAbstract)
makeAbstract
- boolean value implying if this Type is abstract.public void setSequenced(boolean sequenced)
sequenced
- boolean value implying if this type is sequenced.public void setMixed(boolean isMixed)
public void setDataType(boolean datatype)
datatype
- boolean value implying if it is a simple Typepublic void setBaseTypes(List bTypes)
bTypes
- a list types to become this Type's base Type.public void addBaseType(SDOType type)
type
- a type to become this Type's base Type.public void setInstanceClass(Class aClass)
aClass
- the Java class that this type represents.public void setXsd(boolean bXsd)
bXsd
- a boolean representing if this property was declared in an XML schemapublic boolean isXsd()
public void setXsdLocalName(String xsdLocalNameString)
xsdLocalName
- a String representing the local name of this property if it was declared in an XML schemapublic String getXsdLocalName()
public void addDeclaredProperty(commonj.sdo.Property property)
property
- public void addDeclaredProperty(SDOProperty property)
property
- public void addDeclaredProperty(commonj.sdo.Property property, int index)
property
- public void addDeclaredProperty(SDOProperty property, int index)
property
- public void removeDeclaredProperties(commonj.sdo.Property p)
public Map getDeclaredPropertiesMap()
public void setInstanceClassName(String instanceClassName)
instanceClassName
- the Java class that this type represents.public String getInstanceClassName()
public void setXsdList(boolean anXsdList)
xsdList
- a boolean representing if this type represents an xsd:list in the schemapublic boolean isXsdList()
public void setXmlDescriptor(XMLDescriptor anXMLDescriptor)
anXMLDescriptor
- public XMLDescriptor getXmlDescriptor()
public void initializeNamespaces(List namespaceResolvers)
public void setupInheritance(SDOType parentType)
public void preInitialize(String packageName, List namespaceResolvers)
packageName
- nr
- public void postInitialize()
public void setImplClassName(String implClassName)
public String getImplClassName()
public Class getImplClass()
public Object get(commonj.sdo.Property property)
get
in interface commonj.sdo.Type
public List getInstanceProperties()
getInstanceProperties
in interface commonj.sdo.Type
public void setPropertyValues(Map properties)
public Map getPropertyValues()
public void setInstanceProperty(commonj.sdo.Property property, Object value)
property
- value
- public SDOProperty getChangeSummaryProperty()
public SDOProperty[] getPropertiesArray()
public void setSubTypes(List subTypesList)
public List getSubTypes()
public void setXsdType(QName xsdTypeQName)
public QName getXsdType()
public void setFinalized(boolean bFinalized)
public boolean isFinalized()
public void setNonFinalizedReferencingProps(List nonFinalizedReferencingProps)
public List getNonFinalizedReferencingProps()
public void setNonFinalizedMappingURIs(List nonFinalizedMappingURIsList)
public List getNonFinalizedMappingURIs()
public void setAppInfoElements(List appInfoElementsList)
public List getAppInfoElements()
public Map getAppInfoMap()
public Object getPseudoDefault()
public void setPseudoDefault(Object anObject)
anObject
- public commonj.sdo.helper.HelperContext getHelperContext()
public boolean isChangeSummaryType()
public boolean isDataObjectType()
public boolean isTypeType()
public boolean isOpenSequencedType()
public boolean isWrapperType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |