public class SDOProperty extends Object implements Property, Serializable
Purpose:A representation of a Property in the type
of a data object
.
Responsibilities:
Constructor and Description |
---|
SDOProperty(HelperContext aContext) |
SDOProperty(HelperContext aContext,
String aName) |
SDOProperty(HelperContext aContext,
String aName,
SDOType aType) |
SDOProperty(HelperContext aContext,
String aName,
SDOType aType,
boolean hasMany) |
SDOProperty(HelperContext aContext,
String aUri,
String aName,
SDOType aType) |
Modifier and Type | Method and Description |
---|---|
void |
addMappingToOwner(boolean sdoMethodAttributeAccessor,
int indexToAdd)
INTERNAL:
|
void |
buildChangeSummaryMapping()
INTERNAL:
|
void |
buildMapping(String mappingUri)
INTERNAL:
|
void |
buildMapping(String mappingUri,
int indexToAdd)
INTERNAL:
|
XMLFragmentCollectionMapping |
buildXMLFragmentCollectionMapping(String mappingUri) |
XMLFragmentMapping |
buildXMLFragmentMapping(String uri) |
boolean |
equals(Object obj)
Indicate if a given SDOProperty instance is equal to this instance.
|
Object |
get(Property property)
Returns the value of the specified instance property of this Property.
|
List |
getAliasNames()
Return a list of alias names for this Property.
|
List |
getAppInfoElements()
INTERNAL:
|
Map |
getAppInfoMap()
INTERNAL:
|
SDOType |
getContainingType()
Returns the containing type of this Property.
|
Object |
getDefault()
Returns the default value this Property will have in a
data object where the Property hasn't been set. |
int |
getIndexInDeclaredProperties()
INTERNAL:
|
int |
getIndexInType()
INTERNAL:
|
List |
getInstanceProperties()
Returns a read-only List of instance Properties available on this Property.
|
MimeTypePolicy |
getMimeTypePolicy()
INTERNAL:
|
String |
getName()
Returns the name of the Property.
|
SDOProperty |
getOpposite()
Returns the opposite Property if the Property is bi-directional or null otherwise.
|
Map |
getPropertyValues()
INTERNAL:
|
String |
getQualifiedXPath(String uri,
boolean simple)
INTERNAL:
|
Collection<SDOProperty> |
getSubstitutableElements() |
SDOType |
getType()
Returns the type of the Property.
|
String |
getUri() |
DatabaseMapping |
getXmlMapping()
INTERNAL:
|
String |
getXPath()
INTERNAL:
|
String |
getXsdLocalName()
INTERNAL:
Returns the local name of the Property.
|
QName |
getXsdType()
INTERNAL:
|
boolean |
hasAliasNames() |
int |
hashCode()
Return a unique hashCode (as an int) for this instance.
|
void |
incrementIndexInType()
INTERNAL:
|
boolean |
isContainment()
Returns whether the Property is containment, i.e., whether it represents by-value composition.
|
boolean |
isDefaultSet()
INTERNAL:
Return whether the default value has been set by the schema
either via a define by an XSD or a DataObject.
|
protected Boolean |
isElement()
INTERNAL:
Return true if the property is an element, false if the property is an
attribute, and null if it has not been specified.
|
boolean |
isFinalized() |
boolean |
isGlobal()
INTERNAL:
|
boolean |
isMany()
Returns whether the Property is many-valued.
|
boolean |
isNameCollision() |
boolean |
isNamespaceQualified()
INTERNAL:
Returns if the element or attribute corresponding to this Property should be namespace qualified in the XSD.
|
boolean |
isNullable()
Returns whether or not instances of this property can be set to null.
|
boolean |
isOpenContent()
Return whether or not this is an open content property.
|
boolean |
isReadOnly()
Returns true if values for this Property cannot be modified using the SDO APIs.
|
boolean |
isSubstitutable() |
boolean |
isValueProperty()
INTERNAL:
|
boolean |
isXsd()
INTERNAL:
Returns if this property was declared in an XML schema.
|
void |
setAliasNames(List names)
INTERNAL:
Set this Property's alias name list which are unique within the Type.
|
void |
setAppInfoElements(List appInfoElements)
INTERNAL:
|
void |
setContainingType(Type type)
INTERNAL:
Set the containing type of this Property.
|
void |
setContainment(boolean containment)
INTERNAL:
Set this Property's Containment which shows parent-child relationship in a tree
of DataObjects.
|
void |
setDefault(Object aDefaultValue)
INTERNAL:
Set the default value of this Property.
|
void |
setFinalized(boolean isFinalized) |
void |
setGlobal(boolean global)
INTERNAL:
|
void |
setIndexInDeclaredProperties(int indexInDeclaredProperties)
INTERNAL:
|
void |
setIndexInType(int indexInType)
INTERNAL:
|
void |
setInstanceProperty(Property property,
Object value) |
void |
setMany(boolean many)
INTERNAL:
Set this property as single-valued(false) or many-valued(true).
|
void |
setName(String name)
INTERNAL:
Assign a string as a unique name of this Property among Properties that belongs
to a DataObject.
|
void |
setNameCollision(boolean nameCollision) |
void |
setNamespaceQualified(boolean namespaceQualified)
INTERNAL:
Set if the element or attribute corresponding to this Property is namespace qualified in the XSD.
|
void |
setNullable(boolean nullable)
INTERNAL:
|
void |
setOpposite(Property property)
INTERNAL:
Set the opposite Property.
|
void |
setPropertyValues(Map properties)
INTERNAL:
|
void |
setReadOnly(boolean readOnly)
INTERNAL:
Set this Property as read-only Property.
|
void |
setSubstitutable(boolean substitutable) |
void |
setSubstitutableElements(Collection<SDOProperty> elements) |
void |
setType(Type type)
INTERNAL:
Assign a Type to this Property.
|
void |
setUri(String uri) |
void |
setValueProperty(boolean valueProperty)
INTERNAL:
|
void |
setXmlMapping(DatabaseMapping xmlMapping)
INTERNAL:
|
void |
setXsd(boolean xsd)
INTERNAL:
Set if this property was declared in an XML schema.
|
void |
setXsdLocalName(String xsdLocalName)
INTERNAL:
Set the local name of this property.
|
void |
setXsdType(QName xsdType)
INTERNAL:
|
public SDOProperty(HelperContext aContext)
public SDOProperty(HelperContext aContext, String aName)
public SDOProperty(HelperContext aContext, String aName, SDOType aType)
public SDOProperty(HelperContext aContext, String aName, SDOType aType, boolean hasMany)
public SDOProperty(HelperContext aContext, String aUri, String aName, SDOType aType)
public String getName()
public SDOType getType()
public boolean isMany()
public boolean isOpenContent()
isOpenContent
in interface Property
public boolean isContainment()
isContainment
in interface Property
true
if the Property is containment.public SDOType getContainingType()
getContainingType
in interface Property
Type.getProperties()
public Object getDefault()
data object
where the Property hasn't been set.getDefault
in interface Property
public boolean isReadOnly()
isReadOnly
in interface Property
public SDOProperty getOpposite()
getOpposite
in interface Property
public boolean hasAliasNames()
public List getAliasNames()
getAliasNames
in interface Property
public void setName(String name)
name
- a string representing unique name of a property of a DataObject.public void setType(Type type)
type
- the type of this property.public void setContainment(boolean containment)
containment
- a boolean value showing if this Property is containment.public void setMany(boolean many)
many
- a boolean value if this property is many-valued or not.public void setReadOnly(boolean readOnly)
readOnly
- boolean value implying this Property is readonly.public void setAliasNames(List names)
names
- a list of alias name of this Property.public void setContainingType(Type type)
type
- a Type which is the containing type of this Propertypublic void setDefault(Object aDefaultValue)
aDefaultValue
- an Object to be the default value of this type.public void setOpposite(Property property)
property
- the opposite Property if the Property is bi-directional, otherwise nullpublic void setXsd(boolean xsd)
xsd
- a boolean representing if this property was declared in an XML schemapublic boolean isXsd()
public void setXsdLocalName(String xsdLocalName)
xsdLocalName
- a String representing the local name of this property if it was declared in an XML schemapublic String getXsdLocalName()
public void setNamespaceQualified(boolean namespaceQualified)
namespaceQualified
- a boolean representing if the element or attribute corresponding to this Property is namespace qualified in the XSD.public boolean isNamespaceQualified()
public void setXmlMapping(DatabaseMapping xmlMapping)
public DatabaseMapping getXmlMapping()
public void setGlobal(boolean global)
public boolean isGlobal()
protected Boolean isElement()
public void buildMapping(String mappingUri)
public void buildMapping(String mappingUri, int indexToAdd)
public void buildChangeSummaryMapping()
public void addMappingToOwner(boolean sdoMethodAttributeAccessor, int indexToAdd)
public String getXPath()
public Object get(Property property)
Property
get
in interface Property
property
- one of the properties returned by Property.getInstanceProperties()
.DataObject.get(Property)
public List getInstanceProperties()
Property
This list includes, at a minimum, any open content properties (extensions) added to
the object before defining
the Property's Type
. Implementations may, but are not required to in the 2.1 version
of SDO, provide additional instance properties.
getInstanceProperties
in interface Property
public void setPropertyValues(Map properties)
public Map getPropertyValues()
public void setIndexInType(int indexInType)
public int getIndexInType()
public void incrementIndexInType()
public void setNullable(boolean nullable)
public boolean isNullable()
Property
isNullable
in interface Property
public void setXsdType(QName xsdType)
public QName getXsdType()
public MimeTypePolicy getMimeTypePolicy()
public void setIndexInDeclaredProperties(int indexInDeclaredProperties)
public int getIndexInDeclaredProperties()
public void setValueProperty(boolean valueProperty)
public boolean isValueProperty()
public void setAppInfoElements(List appInfoElements)
public List getAppInfoElements()
public Map getAppInfoMap()
public void setNameCollision(boolean nameCollision)
public boolean isNameCollision()
public boolean isDefaultSet()
public void setUri(String uri)
public String getUri()
public XMLFragmentMapping buildXMLFragmentMapping(String uri)
public XMLFragmentCollectionMapping buildXMLFragmentCollectionMapping(String mappingUri)
public boolean isSubstitutable()
public void setSubstitutable(boolean substitutable)
public Collection<SDOProperty> getSubstitutableElements()
public void setSubstitutableElements(Collection<SDOProperty> elements)
public void setFinalized(boolean isFinalized)
public boolean isFinalized()
public int hashCode()
public boolean equals(Object obj)
Copyright © 2017–2020 Eclipse.org - EclipseLink Project. All rights reserved.