|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.sdo.SDOType
public class SDOType
Field Summary | |
---|---|
protected commonj.sdo.helper.HelperContext |
aHelperContext
|
protected boolean |
isDataType
|
protected XMLDescriptor |
xmlDescriptor
|
Constructor Summary | |
---|---|
SDOType(commonj.sdo.helper.HelperContext helperContext)
|
|
SDOType(SDOTypeHelper sdoTypeHelper)
|
|
SDOType(java.lang.String uri,
java.lang.String type_name)
INTERNAL: Build up a Type with given name and uri and a default static HelperContext. |
|
SDOType(java.lang.String uri,
java.lang.String name,
SDOTypeHelper sdoTypeHelper)
Build up a Type with given name and uri |
Method Summary | |
---|---|
void |
addAliasName(java.lang.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: |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
get(commonj.sdo.Property property)
|
java.util.List |
getAliasNames()
|
java.util.List |
getAppInfoElements()
INTERNAL: |
java.util.Map |
getAppInfoMap()
INTERNAL: |
java.util.List |
getBaseTypes()
|
SDOProperty |
getChangeSummaryProperty()
INTERNAL: |
java.util.List |
getDeclaredProperties()
|
java.util.Map |
getDeclaredPropertiesMap()
INTERNAL: |
commonj.sdo.helper.HelperContext |
getHelperContext()
Return the HelperContext object associated with this type. |
java.lang.Class |
getImplClass()
INTERNAL: |
java.lang.String |
getImplClassName()
INTERNAL: |
java.lang.Class |
getInstanceClass()
|
java.lang.String |
getInstanceClassName()
INTERNAL: Returns the Java class name that this type represents. |
java.util.List |
getInstanceProperties()
|
java.lang.String |
getName()
|
java.util.List |
getNonFinalizedMappingURIs()
INTERNAL: |
java.util.List |
getNonFinalizedReferencingProps()
INTERNAL: |
java.util.List |
getProperties()
|
SDOProperty[] |
getPropertiesArray()
INTERNAL: |
SDOProperty |
getProperty(java.lang.String propertyName)
|
java.util.Map |
getPropertyValues()
INTERNAL: |
java.lang.Object |
getPseudoDefault()
INTERNAL: Return the wrapped initial value for the primitive numeric (when not defined) See p.45 of Java Spec 4th edition. |
javax.xml.namespace.QName |
getQName()
|
java.util.List |
getSubTypes()
INTERNAL: |
java.lang.String |
getURI()
|
XMLDescriptor |
getXmlDescriptor()
|
java.lang.String |
getXsdLocalName()
INTERNAL: Returns the local name of the Property. |
javax.xml.namespace.QName |
getXsdType()
INTERNAL: |
void |
initializeNamespaces(java.util.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(java.lang.Object object)
|
boolean |
isOpen()
|
boolean |
isOpenSequencedType()
|
boolean |
isSequenced()
|
boolean |
isTypeType()
|
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(java.lang.String packageName,
java.util.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(java.util.List names)
INTERNAL: Assign a list of alias names to a type, which are unique in URI. |
void |
setAppInfoElements(java.util.List appInfoElementsList)
INTERNAL: |
void |
setBaseTypes(java.util.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(java.lang.String implClassName)
INTERNAL: |
void |
setInstanceClass(java.lang.Class aClass)
INTERNAL: Sets the Java class that this type represents. |
void |
setInstanceClassName(java.lang.String instanceClassName)
INTERNAL: Sets the name of the Java class that this type represents. |
void |
setInstanceProperty(commonj.sdo.Property property,
java.lang.Object value)
INTERNAL: |
void |
setNonFinalizedMappingURIs(java.util.List nonFinalizedMappingURIsList)
INTERNAL: |
void |
setNonFinalizedReferencingProps(java.util.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(java.util.Map properties)
INTERNAL: |
void |
setPseudoDefault(java.lang.Object anObject)
INTERNAL: Set an Object wrapper around primitive numeric types |
void |
setSequenced(boolean sequenced)
INTERNAL: If set as true, this Type specifies Sequenced DataObjects. |
void |
setSubTypes(java.util.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(java.lang.String xsdLocalNameString)
INTERNAL: Set the local name of this property. |
void |
setXsdType(javax.xml.namespace.QName xsdTypeQName)
INTERNAL: |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean isDataType
protected transient XMLDescriptor xmlDescriptor
protected commonj.sdo.helper.HelperContext aHelperContext
Constructor Detail |
---|
public SDOType(commonj.sdo.helper.HelperContext helperContext)
public SDOType(SDOTypeHelper sdoTypeHelper)
public SDOType(java.lang.String uri, java.lang.String type_name)
SDOType(uri, typeName, aHelperContext)
instead
uri
- the URI of this typetype_name
- the unique of this Typepublic SDOType(java.lang.String uri, java.lang.String name, SDOTypeHelper sdoTypeHelper)
uri
- the URI of this typetype_name
- the unique of this TypeaContext
- the current HelperContextMethod Detail |
---|
public javax.xml.namespace.QName getQName()
public java.lang.String getName()
getName
in interface commonj.sdo.Type
public java.lang.String getURI()
getURI
in interface commonj.sdo.Type
public java.lang.Class getInstanceClass()
getInstanceClass
in interface commonj.sdo.Type
public boolean isInstance(java.lang.Object object)
isInstance
in interface commonj.sdo.Type
public java.util.List getProperties()
getProperties
in interface commonj.sdo.Type
public SDOProperty getProperty(java.lang.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 java.util.List getBaseTypes()
getBaseTypes
in interface commonj.sdo.Type
public java.util.List getDeclaredProperties()
getDeclaredProperties
in interface commonj.sdo.Type
public java.util.List getAliasNames()
getAliasNames
in interface commonj.sdo.Type
public void addAliasName(java.lang.String name)
name
- a unique string representing a type.public void setAliasNames(java.util.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 setDataType(boolean datatype)
datatype
- boolean value implying if it is a simple Typepublic void setBaseTypes(java.util.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(java.lang.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(java.lang.String xsdLocalNameString)
xsdLocalName
- a String representing the local name of this property if it was declared in an XML schemapublic java.lang.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 java.util.Map getDeclaredPropertiesMap()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public void setInstanceClassName(java.lang.String instanceClassName)
instanceClassName
- the Java class that this type represents.public java.lang.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(java.util.List namespaceResolvers)
public void setupInheritance(SDOType parentType)
public void preInitialize(java.lang.String packageName, java.util.List namespaceResolvers)
packageName
- nr
- public void postInitialize()
public void setImplClassName(java.lang.String implClassName)
public java.lang.String getImplClassName()
public java.lang.Class getImplClass()
public java.lang.Object get(commonj.sdo.Property property)
get
in interface commonj.sdo.Type
public java.util.List getInstanceProperties()
getInstanceProperties
in interface commonj.sdo.Type
public void setPropertyValues(java.util.Map properties)
public java.util.Map getPropertyValues()
public void setInstanceProperty(commonj.sdo.Property property, java.lang.Object value)
property
- value
- public SDOProperty getChangeSummaryProperty()
public SDOProperty[] getPropertiesArray()
public void setSubTypes(java.util.List subTypesList)
public java.util.List getSubTypes()
public void setXsdType(javax.xml.namespace.QName xsdTypeQName)
public javax.xml.namespace.QName getXsdType()
public void setFinalized(boolean bFinalized)
public boolean isFinalized()
public void setNonFinalizedReferencingProps(java.util.List nonFinalizedReferencingProps)
public java.util.List getNonFinalizedReferencingProps()
public void setNonFinalizedMappingURIs(java.util.List nonFinalizedMappingURIsList)
public java.util.List getNonFinalizedMappingURIs()
public void setAppInfoElements(java.util.List appInfoElementsList)
public java.util.List getAppInfoElements()
public java.util.Map getAppInfoMap()
public java.lang.Object getPseudoDefault()
public void setPseudoDefault(java.lang.Object anObject)
anObject
- public commonj.sdo.helper.HelperContext getHelperContext()
public boolean isChangeSummaryType()
public boolean isDataObjectType()
public boolean isTypeType()
public boolean isOpenSequencedType()
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |