solar.service.directory
Class PlainName

java.lang.Object
  |
  +--solar.impl.AbstractAttributeRecord
        |
        +--solar.impl.PlainAttributeRecord
              |
              +--solar.service.directory.PlainName
All Implemented Interfaces:
Adu, AttributeRecord, Name, java.io.Serializable, SolarConstants

public class PlainName
extends PlainAttributeRecord
implements Name

A name with strings encoded in square brackets.

Version:
$Id: PlainName.java,v 1.2 2003/08/30 15:08:50 glchen Exp $
Author:
Guanling Chen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class solar.impl.PlainAttributeRecord
 
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
PlainName(AttributeRecord ar)
          Constructs a name with a list of attributes.
PlainName(java.util.List aList)
          Constructs a name with a list of attributes.
PlainName(Name aName)
          Constructs a name by copying from another one.
PlainName(java.lang.String rec)
          Constructs a name by parsing an encoded string.
 
Method Summary
private  void fillStrandsFromAR(AttributeRecord ar, java.lang.String prefix, java.util.List ret)
           
 java.util.List getStrands()
          Return the list of all strands.
 
Methods inherited from class solar.impl.PlainAttributeRecord
equals, toBytes, toString
 
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
 
Methods inherited from interface solar.api.AttributeRecord
equals, getAttribute, getAttributes, getAttributes, getKeys, getValue, getValues, getValues
 
Methods inherited from interface solar.api.Adu
toBytes, toString
 

Constructor Detail

PlainName

public PlainName(java.lang.String rec)
          throws ParsingException
Constructs a name by parsing an encoded string.


PlainName

public PlainName(java.util.List aList)
Constructs a name with a list of attributes.


PlainName

public PlainName(AttributeRecord ar)
Constructs a name with a list of attributes.


PlainName

public PlainName(Name aName)
Constructs a name by copying from another one.

Method Detail

getStrands

public java.util.List getStrands()
Return the list of all strands.

Specified by:
getStrands in interface Name

fillStrandsFromAR

private void fillStrandsFromAR(AttributeRecord ar,
                               java.lang.String prefix,
                               java.util.List ret)