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
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 |
owner
SDSIPrincipal owner
names
SexpString[] names
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
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()