|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--solar.impl.AbstractAttributeRecord
|
+--solar.impl.PlainAttributeRecord
Plain attribute record encodes string attributes in square brackets. The attribute values have to be strings. The brackets "[" and "]" thus shall not be used in attribute keys and values.
For example: [ a = [ b = 12 ], c = 33, d = [ e = [ f = 44 ] ] ]
| Field Summary | |
private static int |
DELIMIT
|
private static int |
KEY
|
private static int |
VALUE
|
| Fields inherited from class solar.impl.AbstractAttributeRecord |
_attributes |
| Fields inherited from interface solar.SolarConstants |
ADVERTISEMENT_SVID, ATTRIBUTE_RECORD_SVID, ATTRIBUTE_SVID, FILTER_CONFIG_SVID, FILTER_SPEC_SVID, GRAPH_SPEC_SVID, GUID_SVID, HEADER_SVID, ID_SVID, NAME_RECORD_SVID, PACK_POLICY_SVID, PIPE_SPEC_SVID, REQUEST_SVID, RPCACK_SVID |
| Constructor Summary | |
protected |
PlainAttributeRecord()
Constructs an empty attribute record. |
|
PlainAttributeRecord(AttributeRecord aRec)
Constructs an atribute record by copying from another one. |
|
PlainAttributeRecord(java.util.List aList)
Constructs an atribute record with a list of attributes. |
|
PlainAttributeRecord(java.lang.String rec)
Constructs an attribute record by parsing an encoded string. |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Determine whether two objects are equal. |
private java.util.List |
parsePlainAttributeRecord(java.lang.String rec)
Parse an attribute record encoded in a string. |
byte[] |
toBytes()
Return the byte array format of this ADU. |
java.lang.String |
toString()
Return the string format of this ADU. |
| Methods inherited from class solar.impl.AbstractAttributeRecord |
getAttribute, getAttributes, getAttributes, getKeys, getValue, getValues, getValues |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final int KEY
private static final int VALUE
private static final int DELIMIT
| Constructor Detail |
protected PlainAttributeRecord()
public PlainAttributeRecord(java.lang.String rec)
throws ParsingException
public PlainAttributeRecord(java.util.List aList)
public PlainAttributeRecord(AttributeRecord aRec)
| Method Detail |
private java.util.List parsePlainAttributeRecord(java.lang.String rec)
throws ParsingException
ParsingExceptionpublic boolean equals(java.lang.Object obj)
AttributeRecord
equals in interface AttributeRecordequals in class java.lang.Objectpublic java.lang.String toString()
Adu
toString in interface AdutoString in class java.lang.Objectpublic byte[] toBytes()
Adu
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||