de.lehmannet.om
Class GenericTarget
java.lang.Object
de.lehmannet.om.SchemaElement
de.lehmannet.om.Target
de.lehmannet.om.GenericTarget
- All Implemented Interfaces:
- IExtendableSchemaElement, ISchemaElement, ITarget
public class GenericTarget
- extends Target
|
Method Summary |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Target to a given parent XML DOM Element. |
boolean |
equals(java.lang.Object obj)
Overwrittes equals(Object) method from java.lang.Object. |
java.lang.String |
getXSIType()
Returns the XML schema instance type of the implementation. |
java.lang.String |
toString()
Overwrittes toString() method from java.lang.Object. |
| Methods inherited from class de.lehmannet.om.Target |
addAliasName, addAliasNames, addAsLinkToXmlElement, createXmlTargetElement, equalsID, getAliasNames, getConstellation, getDatasource, getDisplayName, getName, getObserver, getPosition, removeAliasName, setAliasNames, setConstellation, setDatasource, setName, setObserver, setPosition |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GenericTarget
public GenericTarget(org.w3c.dom.Node targetElement,
IObserver[] observers)
throws SchemaException
- Throws:
SchemaException
GenericTarget
public GenericTarget(java.lang.String name,
java.lang.String datasource)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
GenericTarget
public GenericTarget(java.lang.String name,
IObserver observer)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
toString
public java.lang.String toString()
- Overwrittes toString() method from java.lang.Object.
Returns the field values of this GenericTarget.
- Overrides:
toString in class java.lang.Object
- Returns:
- This GenericTarget field values
- See Also:
Object
equals
public boolean equals(java.lang.Object obj)
- Overwrittes equals(Object) method from java.lang.Object.
Checks if this GenericTarget and the given Object are equal. The given
object is equal with this GenericTarget, if it derives from ITarget,
both XSI types are equal and its name equals this GenericTarget name.
- Overrides:
equals in class Target
- Parameters:
obj - The Object to compare this GenericTarget with.
- Returns:
true if the given Object is an instance of ITarget,
both XSI types are equal and its name is equal to this GenericTarget name.
(Name comparism is not casesensitive)- See Also:
Object
addToXmlElement
public org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
- Adds this Target to a given parent XML DOM Element.
The Target element will be set as a child element of
the passed element.
- Specified by:
addToXmlElement in interface ITarget- Specified by:
addToXmlElement in class Target
- Parameters:
parent - The parent element for this Target
- Returns:
- Returns the element given as parameter with this
Target as child element.
Might return null if parent was null. - See Also:
Element
getXSIType
public java.lang.String getXSIType()
- Returns the XML schema instance type of the implementation.
Example:
- Returns:
- The xsi:type value of this implementation