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
ConstructorsConstructorDescriptionTLcdXMLFeaturedObject(TLcdXMLFeaturedDescriptor aFeaturedDescriptor) Creates a newTLcdXMLFeaturedDescriptor, initialized with the specifiedTLcdXMLFeaturedDescriptor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSetFeature(int aIndex) Checks whether the specified feature is editable.clone()getFeature(int aIndex) Returns the featureObjectat the given index.getFeature(String aFeatureName) Returns the value of the specified feature ornullif this object does not contain a feature with the given name.intReturns the number of features.Returns theILcdFeaturedDescriptordescribing thisILcdFeaturedobject.Returns the qualified XML name of this element.booleanisNil()Returnstrueif the content of this element is nil,falseotherwise.voidsetFeature(int aIndex, Object aFeature) Sets the featureObjectat the given index.voidsetFeature(String aFeatureName, Object aValue) Sets the value of the specified feature.voidsetNil(boolean aNil) Sets whether the content of this element is nil.voidsetXMLName(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:ILcdXMLElementInfoReturnstrueif the content of this element is nil,falseotherwise.- Specified by:
isNilin interfaceILcdXMLElementInfo- Returns:
trueif the content of this element is nil,falseotherwise.
-
setNil
public void setNil(boolean aNil) Description copied from interface:ILcdXMLElementInfoSets whether the content of this element is nil.- Specified by:
setNilin interfaceILcdXMLElementInfo- Parameters:
aNil- whether the content of this element is nil.
-
getXMLName
Description copied from interface:ILcdXMLElementInfoReturns the qualified XML name of this element.- Specified by:
getXMLNamein interfaceILcdXMLElementInfo- Returns:
- the name of this element.
-
setXMLName
Description copied from interface:ILcdXMLElementInfoSets the qualified XML name of this element.- Specified by:
setXMLNamein interfaceILcdXMLElementInfo- Parameters:
aName- the name of this element.
-
getFeaturedDescriptor
Description copied from interface:ILcdSelfDescribedFeaturedReturns theILcdFeaturedDescriptordescribing thisILcdFeaturedobject.- Specified by:
getFeaturedDescriptorin interfaceILcdSelfDescribedFeatured- Returns:
- the
ILcdFeaturedDescriptordescribing thisILcdFeaturedobject.
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeaturedChecks whether the specified feature is editable.- Specified by:
canSetFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
getFeature
Description copied from interface:ILcdFeaturedReturns the featureObjectat the given index.- Specified by:
getFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- the feature
Objectat 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:ILcdFeaturedReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeatured- Returns:
- the number of features.
-
setFeature
Description copied from interface:ILcdFeaturedSets the featureObjectat the given index.- Specified by:
setFeaturein 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:ILcdSelfDescribedFeaturedReturns the value of the specified feature ornullif this object does not contain a feature with the given name.- Specified by:
getFeaturein interfaceILcdSelfDescribedFeatured- Parameters:
aFeatureName- the name of the feature- Returns:
- the corresponding value or
null
-
setFeature
Description copied from interface:ILcdSelfDescribedFeaturedSets the value of the specified feature.- Specified by:
setFeaturein 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
-