|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.Name
public class Name
A name class is an atomic symbol uniquely defined by a sequence of
characters. Uniquely defined means that any two name objects made up of the
same sequence of characters are identical. Atomic means
that a name has no internal structure, although it is defined by a sequence
of characters, those characters are not "elements" of the name.
A slash character (/) introduces a name. The slash is not part of the name itself, but a prefix indicating that the following sequence of characters constitutes a name. There can be no white-space characters between the slash and the first character in the name. The name may include any regular characters, but no delimiter or white-space characters. Uppercase and lowercase letters are considered distinct forexample, /A and /a are different names.
Names are similar to References in that objects in a PDF document can be accessed by their use. The Library class can result in any Name object and return the corresponding PDF object.
| Constructor Summary | |
|---|---|
Name(java.lang.String name)
Create a new instance of a Name object. |
|
Name(java.lang.StringBuilder name)
Create a new instance of a Name object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other Name object is "equal to" this one |
java.lang.String |
getName()
Gets the name of the Name object. |
int |
hashCode()
Returns a hash code value for the Name object. |
java.lang.String |
toString()
Gets the string value of the Name object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Name(java.lang.String name)
name - the name value of the Name objectpublic Name(java.lang.StringBuilder name)
name - the name value of the Name object| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.ObjectgetName()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - name object that this Name object is compared against
public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||