|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
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
Nested Class Summary | |
---|---|
static class |
SDOType.TypeInstantiationPolicy |
Field Summary | |
---|---|
protected HelperContext |
aHelperContext |
private java.util.List |
aliasNames |
private java.util.List |
allProperties |
private SDOProperty[] |
allPropertiesArr |
private static java.lang.String |
ANY_MAPPING_ATTRIBUTE_NAME Open Content setOpen constants |
private static java.lang.String |
ANY_MAPPING_GET_METHOD_NAME |
private static java.lang.String |
ANY_MAPPING_SET_METHOD_NAME |
private java.util.List |
appInfoElements |
private java.util.Map |
appInfoMap |
private java.util.List |
baseTypes |
private SDOProperty |
changeSummaryProperty |
private java.util.List |
declaredProperties |
private java.util.Map |
declaredPropertiesMap |
private static java.lang.Class[] |
EMPTY_CLASS_ARRAY |
private boolean |
finalized |
private boolean |
isAbstract |
protected boolean |
isDataType |
private java.lang.Class |
javaClass |
private java.lang.String |
javaClassName |
protected java.lang.Class |
javaImplClass |
private java.lang.String |
javaImplClassName |
private java.util.List |
nonFinalizedMappingURIs |
private java.util.List<SDOProperty> |
nonFinalizedReferencingProps |
private boolean |
open |
private java.util.Map |
propertyValues |
private java.lang.Object |
pseudoDefault hold a wrapper object for primitive numeric defaults |
private javax.xml.namespace.QName |
qName |
private static java.lang.String |
SDO_REF_MAPPING_ATTRIBUTE_NAME |
private java.util.List |
subTypes |
protected XMLDescriptor |
xmlDescriptor |
private boolean |
xsd |
private boolean |
xsdList |
private java.lang.String |
xsdLocalName |
private javax.xml.namespace.QName |
xsdType |
Constructor Summary | |
---|---|
|
SDOType(HelperContext helperContext) |
protected |
SDOType(SDOTypeHelper sdoTypeHelper, XMLDescriptor xmlDescriptor) |
|
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 |
protected |
SDOType(java.lang.String uri, java.lang.String name, SDOTypeHelper sdoTypeHelper, XMLDescriptor xmlDescriptor) |
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: |
private void |
addClassIndicator(XMLDescriptor xdesc, java.lang.Class pCls, boolean isInheritanceRoot) INTERNAL: Convenience method that sets up class indicator and @sdoRef attribute. |
void |
addDeclaredProperty(Property property) INTERNAL: |
void |
addDeclaredProperty(Property property, int index) INTERNAL: |
private void |
addOpenMappings() |
java.lang.Object |
get(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: |
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 |
isBaseType() INTERNAL: Provide a means to determine if this type has sub types without causing the sub types property to be initialized. |
boolean |
isChangeSummaryType() |
boolean |
isDataObjectType() |
boolean |
isDataType() |
boolean |
isFinalized() INTERNAL: |
boolean |
isInstance(java.lang.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() |
private boolean |
isValidInstanceClass(java.lang.Class clazz) Verify that the class is a valid instance class. |
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(java.lang.String packageName, java.util.List namespaceResolvers) INTERNAL: For this Type generate classes |
void |
removeDeclaredProperties(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(Property property, java.lang.Object value) INTERNAL: |
void |
setMixed(boolean isMixed) |
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 |
setQName(javax.xml.namespace.QName qName) |
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: |
private void |
updateIndices(int insertPosition, Property property) |
private void |
updateSubtypes(Type baseType) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.Class[] EMPTY_CLASS_ARRAY
private javax.xml.namespace.QName qName
private boolean open
private boolean isAbstract
protected boolean isDataType
private java.util.List baseTypes
private java.util.List declaredProperties
private transient java.util.Map declaredPropertiesMap
private java.util.List aliasNames
private boolean xsd
private boolean xsdList
private java.lang.String xsdLocalName
private javax.xml.namespace.QName xsdType
protected transient XMLDescriptor xmlDescriptor
private java.util.Map propertyValues
private SDOProperty changeSummaryProperty
private java.util.List allProperties
private SDOProperty[] allPropertiesArr
private java.util.List subTypes
private boolean finalized
private java.lang.Class javaClass
private java.lang.String javaClassName
private java.lang.String javaImplClassName
protected java.lang.Class javaImplClass
private java.util.List<SDOProperty> nonFinalizedReferencingProps
private java.util.List nonFinalizedMappingURIs
private java.lang.Object pseudoDefault
protected HelperContext aHelperContext
private java.util.List appInfoElements
private java.util.Map appInfoMap
private static final java.lang.String ANY_MAPPING_ATTRIBUTE_NAME
private static final java.lang.String ANY_MAPPING_GET_METHOD_NAME
private static final java.lang.String ANY_MAPPING_SET_METHOD_NAME
private static final java.lang.String SDO_REF_MAPPING_ATTRIBUTE_NAME
Constructor Detail |
---|
public SDOType(HelperContext helperContext)
protected SDOType(SDOTypeHelper sdoTypeHelper, XMLDescriptor xmlDescriptor)
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 HelperContextprotected SDOType(java.lang.String uri, java.lang.String name, SDOTypeHelper sdoTypeHelper, XMLDescriptor xmlDescriptor)
Method Detail |
---|
public javax.xml.namespace.QName getQName()
public void setQName(javax.xml.namespace.QName qName)
public java.lang.String getName()
public java.lang.String getURI()
public java.lang.Class getInstanceClass()
private boolean isValidInstanceClass(java.lang.Class clazz)
public boolean isInstance(java.lang.Object object)
public java.util.List getProperties()
public SDOProperty getProperty(java.lang.String propertyName)
public boolean isDataType()
public boolean isOpen()
public boolean isSequenced()
public boolean isAbstract()
public java.util.List getBaseTypes()
public boolean isSubType()
public java.util.List getDeclaredProperties()
public java.util.List getAliasNames()
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 openprivate void addOpenMappings()
public 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(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.private void updateSubtypes(Type baseType)
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(Property property)
property
-public void addDeclaredProperty(Property property, int index)
property
-public void removeDeclaredProperties(Property p)
public java.util.Map getDeclaredPropertiesMap()
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)
private void addClassIndicator(XMLDescriptor xdesc, java.lang.Class pCls, boolean isInheritanceRoot)
xdesc
-pCls
-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(Property property)
public java.util.List getInstanceProperties()
public void setPropertyValues(java.util.Map properties)
public java.util.Map getPropertyValues()
public void setInstanceProperty(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 boolean isBaseType()
private void updateIndices(int insertPosition, Property property)
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 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 |