wt.rule.init
Class Attr

java.lang.Object
  extended bywt.rule.init.Attr
All Implemented Interfaces:
InitRuleElem, Serializable

public class Attr
extends Object
implements InitRuleElem, Serializable

An attribute value that is an argument to an algorithm.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
 String id
          The identifier of this attribute.
private  AlgoValue parent
           
private static String RESOURCE
           
 
Constructor Summary
Attr(AlgoValue parent, String id)
          Create an attribute that is an argument to the specified parent specification's algorithm.
 
Method Summary
 Attr copyTo(AlgoValue copyParent)
          Copy this Attr to another AlgoValue specification.
 boolean equals(Object obj)
          

Supported API: false
private static boolean equals(Object o1, Object o2)
          Return true if both objects are null or o1.equals(o2) is true.
 String getId()
          Gets the value of the attribute: id; The identifier of this attribute.
 String getObjType()
          Return the objType that this attribute belongs to.
(package private)  AlgoValue getParent()
          Gets the value of the attribute: parent; the parent specification of this attribute

Supported API: false
(package private)  void setParent(AlgoValue a_Parent)
          Sets the value of the attribute: parent; the parent specification of this attribute

Supported API: false
 String toString()
           
 void writeXML(Writer writer)
          Write the XML for this specification to the specified Writer.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

id

public final String id
The identifier of this attribute.

Supported API: false


parent

private AlgoValue parent
Constructor Detail

Attr

public Attr(AlgoValue parent,
            String id)
Create an attribute that is an argument to the specified parent specification's algorithm.

Supported API: false

Parameters:
parent - the parent specification of this attribute
id - teh identifier of this attribute
Method Detail

getId

public final String getId()
Gets the value of the attribute: id; The identifier of this attribute.

Supported API: false

Returns:
String

getParent

AlgoValue getParent()
Gets the value of the attribute: parent; the parent specification of this attribute

Supported API: false

Returns:
AlgoValue

setParent

void setParent(AlgoValue a_Parent)
Sets the value of the attribute: parent; the parent specification of this attribute

Supported API: false

Parameters:
a_Parent -

getObjType

public String getObjType()
Return the objType that this attribute belongs to.

Supported API: false

Specified by:
getObjType in interface InitRuleElem
Returns:
String

copyTo

public Attr copyTo(AlgoValue copyParent)
Copy this Attr to another AlgoValue specification. Return the newly created copy.

Supported API: false

Parameters:
copyParent - the parent to copy to
Returns:
Attr

equals

public boolean equals(Object obj)


Supported API: false

Parameters:
obj -
Returns:
boolean

writeXML

public void writeXML(Writer writer)
              throws IOException
Write the XML for this specification to the specified Writer.

Supported API: false

Specified by:
writeXML in interface InitRuleElem
Parameters:
writer -
Throws:
IOException

toString

public String toString()

equals

private static boolean equals(Object o1,
                              Object o2)
Return true if both objects are null or o1.equals(o2) is true.