public class SDOType
extends java.lang.Object
implements commonj.sdo.Type, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SDOType.TypeInstantiationPolicy |
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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:
|
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 |
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() |
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(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 |
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:
|
public SDOType(commonj.sdo.helper.HelperContext helperContext)
public SDOType(SDOTypeHelper sdoTypeHelper)
public SDOType(java.lang.String uri,
java.lang.String type_name)
SDOType(String, String, org.eclipse.persistence.sdo.helper.SDOTypeHelper) insteaduri - 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 typename - the unique of this TypesdoTypeHelper - the current HelperContextpublic javax.xml.namespace.QName getQName()
public void setQName(javax.xml.namespace.QName qName)
public java.lang.String getName()
getName in interface commonj.sdo.Typepublic java.lang.String getURI()
getURI in interface commonj.sdo.Typepublic java.lang.Class getInstanceClass()
getInstanceClass in interface commonj.sdo.Typepublic boolean isInstance(java.lang.Object object)
isInstance in interface commonj.sdo.Typepublic java.util.List getProperties()
getProperties in interface commonj.sdo.Typepublic SDOProperty getProperty(java.lang.String propertyName)
getProperty in interface commonj.sdo.Typepublic boolean isDataType()
isDataType in interface commonj.sdo.Typepublic boolean isOpen()
isOpen in interface commonj.sdo.Typepublic boolean isSequenced()
isSequenced in interface commonj.sdo.Typepublic boolean isAbstract()
isAbstract in interface commonj.sdo.Typepublic java.util.List getBaseTypes()
getBaseTypes in interface commonj.sdo.Typepublic boolean isSubType()
public java.util.List getDeclaredProperties()
getDeclaredProperties in interface commonj.sdo.Typepublic java.util.List getAliasNames()
getAliasNames in interface commonj.sdo.Typepublic 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 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.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)
xsdLocalNameString - 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 void setInstanceClassName(java.lang.String instanceClassName)
instanceClassName - the Java class that this type represents.public java.lang.String getInstanceClassName()
public void setXsdList(boolean anXsdList)
anXsdList - 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 - namespaceResolvers - 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.Typepublic java.util.List getInstanceProperties()
getInstanceProperties in interface commonj.sdo.Typepublic 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 boolean isBaseType()
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()
public boolean isWrapperType()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference