sdsi
Class Name

java.lang.Object
  |
  +--sdsi.SDSIObject
        |
        +--sdsi.Name
All Implemented Interfaces:
java.io.Serializable, Subject

public class Name
extends SDSIObject
implements Subject

Author:
Alexander Morcos, Sameer Ajmani
See Also:
Serialized Form

Field Summary
(package private)  SexpString[] names
           
(package private)  SDSIPrincipal owner
           
 
Fields inherited from class sdsi.SDSIObject
_hash, _modified, srep
 
Constructor Summary
Name(SDSIPrincipal issuer, java.lang.String[] words)
          Creates a new name from an issuer and the list of names to follow
Name(SexpList l, SDSIPrincipal issuer)
           
 
Method Summary
 void expandNames(Name dontInclude, Name expansion)
           
 java.lang.String getAbbreviation()
          Returns a single or double letter abbreviation this SDSIObject.
 java.lang.String getNameIndex(int i)
           
 java.lang.String[] getNames()
           
 SDSIPrincipal getPrincipal()
           
 boolean prefixNamesOf(Name another)
           
 void replaceNames(Name oldPart, Name newPart, SDSIPrincipal newOwner)
           
 boolean sameAs(java.lang.Object object)
           
 boolean sameNameAs(Name that)
           
 boolean sameNamesAs(Name another)
           
 int size()
           
 java.lang.String toShortString()
          Returns a short descriptive string representing this SDSIObject.
 
Methods inherited from class sdsi.SDSIObject
equals, getHash, getHash, getSrep, getType, hashCode, principalParse, readFrom, readFrom, sign, toReadableString, toString, writeCanonical, writeReadable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface sdsi.Subject
getSrep
 

Field Detail

owner

SDSIPrincipal owner

names

SexpString[] names
Constructor Detail

Name

public Name(SDSIPrincipal issuer,
            java.lang.String[] words)
     throws SDSIException
Creates a new name from an issuer and the list of names to follow


Name

public Name(SexpList l,
            SDSIPrincipal issuer)
     throws SexpParseException,
            SDSIException
Method Detail

sameAs

public boolean sameAs(java.lang.Object object)
Specified by:
sameAs in interface Subject
Overrides:
sameAs in class SDSIObject

expandNames

public void expandNames(Name dontInclude,
                        Name expansion)

replaceNames

public void replaceNames(Name oldPart,
                         Name newPart,
                         SDSIPrincipal newOwner)

sameNamesAs

public boolean sameNamesAs(Name another)

prefixNamesOf

public boolean prefixNamesOf(Name another)

sameNameAs

public boolean sameNameAs(Name that)

getPrincipal

public SDSIPrincipal getPrincipal()

toShortString

public java.lang.String toShortString()
Description copied from class: SDSIObject
Returns a short descriptive string representing this SDSIObject.

Specified by:
toShortString in interface Subject
Specified by:
toShortString in class SDSIObject
Returns:
a short string description of this SDSIObject.

size

public int size()

getAbbreviation

public java.lang.String getAbbreviation()
Description copied from class: SDSIObject
Returns a single or double letter abbreviation this SDSIObject.

Specified by:
getAbbreviation in class SDSIObject
Returns:
an abbreviated description of this SDSIObject.

getNameIndex

public java.lang.String getNameIndex(int i)

getNames

public java.lang.String[] getNames()