Class TLcdXMLFeaturedObject
java.lang.Object
com.luciad.format.xml.bind.schema.TLcdXMLFeaturedObject
- All Implemented Interfaces:
ILcdXMLElementInfo
,ILcdFeatured
,ILcdSelfDescribedFeatured
,Serializable
,Cloneable
public class TLcdXMLFeaturedObject
extends Object
implements ILcdXMLElementInfo, ILcdSelfDescribedFeatured, Cloneable
Default implementation for XML domain objects, based on
ILcdSelfDescribedFeatured
.
The decoder/encoder for each format should define how the XML content is mapped on the features of a
TLcdXMLFeaturedObject
.- Since:
- 9.0
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdXMLFeaturedObject
(TLcdXMLFeaturedDescriptor aFeaturedDescriptor) Creates a newTLcdXMLFeaturedDescriptor
, initialized with the specifiedTLcdXMLFeaturedDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSetFeature
(int aIndex) Checks whether the specified feature is editable.clone()
getFeature
(int aIndex) Returns the featureObject
at the given index.getFeature
(String aFeatureName) Returns the value of the specified feature ornull
if this object does not contain a feature with the given name.int
Returns the number of features.Returns theILcdFeaturedDescriptor
describing thisILcdFeatured
object.Returns the qualified XML name of this element.boolean
isNil()
Returnstrue
if the content of this element is nil,false
otherwise.void
setFeature
(int aIndex, Object aFeature) Sets the featureObject
at the given index.void
setFeature
(String aFeatureName, Object aValue) Sets the value of the specified feature.void
setNil
(boolean aNil) Sets whether the content of this element is nil.void
setXMLName
(QName aName) Sets the qualified XML name of this element.toString()
-
Constructor Details
-
TLcdXMLFeaturedObject
Creates a newTLcdXMLFeaturedDescriptor
, initialized with the specifiedTLcdXMLFeaturedDescriptor
.- Parameters:
aFeaturedDescriptor
- the featured descriptor describing this object.
-
-
Method Details
-
isNil
public boolean isNil()Description copied from interface:ILcdXMLElementInfo
Returnstrue
if the content of this element is nil,false
otherwise.- Specified by:
isNil
in interfaceILcdXMLElementInfo
- Returns:
true
if the content of this element is nil,false
otherwise.
-
setNil
public void setNil(boolean aNil) Description copied from interface:ILcdXMLElementInfo
Sets whether the content of this element is nil.- Specified by:
setNil
in interfaceILcdXMLElementInfo
- Parameters:
aNil
- whether the content of this element is nil.
-
getXMLName
Description copied from interface:ILcdXMLElementInfo
Returns the qualified XML name of this element.- Specified by:
getXMLName
in interfaceILcdXMLElementInfo
- Returns:
- the name of this element.
-
setXMLName
Description copied from interface:ILcdXMLElementInfo
Sets the qualified XML name of this element.- Specified by:
setXMLName
in interfaceILcdXMLElementInfo
- Parameters:
aName
- the name of this element.
-
getFeaturedDescriptor
Description copied from interface:ILcdSelfDescribedFeatured
Returns theILcdFeaturedDescriptor
describing thisILcdFeatured
object.- Specified by:
getFeaturedDescriptor
in interfaceILcdSelfDescribedFeatured
- Returns:
- the
ILcdFeaturedDescriptor
describing thisILcdFeatured
object.
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeatured
Checks whether the specified feature is editable.- Specified by:
canSetFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
getFeature
Description copied from interface:ILcdFeatured
Returns the featureObject
at the given index.- Specified by:
getFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- the feature
Object
at the given index. - Throws:
IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.- See Also:
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeatured
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeatured
- Returns:
- the number of features.
-
setFeature
Description copied from interface:ILcdFeatured
Sets the featureObject
at the given index.- Specified by:
setFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.aFeature
- the new featureObject
.- Throws:
IllegalArgumentException
- if the feature can't be set.- See Also:
-
getFeature
Description copied from interface:ILcdSelfDescribedFeatured
Returns the value of the specified feature ornull
if this object does not contain a feature with the given name.- Specified by:
getFeature
in interfaceILcdSelfDescribedFeatured
- Parameters:
aFeatureName
- the name of the feature- Returns:
- the corresponding value or
null
-
setFeature
Description copied from interface:ILcdSelfDescribedFeatured
Sets the value of the specified feature.- Specified by:
setFeature
in interfaceILcdSelfDescribedFeatured
- Parameters:
aFeatureName
- the name of the feature to modifyaValue
- the new value for the feature- Throws:
IllegalArgumentException
- if the given value is not valid for the specified feature or if the specified feature is not available in this object
-
toString
-
clone
-