public class ConfTypeDescriptor extends ConfObject
Example:
ConfTypeDescriptor typeDesc = new ConfTypeDescriptor(ConfObject.J_BUF); ConfBuf buf = (ConfBuf) typeDesc.newInstance("Hello");
J_BINARY, J_BIT32, J_BIT64, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLTAG
Constructor and Description |
---|
ConfTypeDescriptor(int type)
Constructor for ConfTypeDescriptor class
|
Modifier and Type | Method and Description |
---|---|
ConfEObject |
encode() |
boolean |
equals(Object o)
Determine if two Conf objects are equal.
|
static ConfTypeDescriptor |
getConfTypeDescriptor(ConfObject o)
Generates a ConfTypeDescriptor representing the type of a specified
ConfObject.
|
int |
getType() |
int |
hashCode() |
ConfValue |
newInstance(String str)
Creates a new ConfValue instance of the type described by this
ConfTypeDescriptor and with a value represented by a string.
|
String |
toString() |
clone, decode
public ConfTypeDescriptor(int type)
type
- int representation for ConfValue type
ConfObject
public ConfEObject encode()
encode
in class ConfObject
public boolean equals(Object o)
ConfObject
equals
in class ConfObject
o
- the object to compare to.public static ConfTypeDescriptor getConfTypeDescriptor(ConfObject o)
o
- ConfObject instance from which a ConfTypeDescriptor should be
generatedpublic int getType()
ConfObject
public int hashCode()
hashCode
in class ConfObject
public ConfValue newInstance(String str) throws ConfException
str
- the string representation of the valueConfException
public String toString()
toString
in class ConfObject