|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbbc.rd.tvanytime.Keyword
public class Keyword
Represents a TV-Anytime Character object. Extends PersonName by changing XML and string representation. Note that strictly a Keyword is an NMTOKEN which must begin with a letter or underscore. Subsequent letters may include letters, digits, underscores, hyphens and periods only. They cannot include whitescape. However I have not added these restrictions to keep backwards-compatibility.
Field Summary | |
---|---|
static int |
MAIN
Possible keyword types, default is Main. |
static int |
OTHER
|
static int |
SECONDARY
|
Constructor Summary | |
---|---|
Keyword()
Constructor. |
|
Keyword(java.lang.String keyword)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones itself. |
java.lang.String |
getKeyword()
Get keyword. |
int |
getType()
Returns the type for this Keyword object |
void |
setKeyword(java.lang.String keyword)
Set keyword. |
void |
setType(int type)
Sets the type for this keyword. |
java.lang.String |
toString()
toString - returns a String representation of this object |
java.lang.String |
toString(int indent)
toString - returns a String representation of this object with the specified number of tab indentations |
java.lang.String |
toXML()
Returns a XML representation of this object |
java.lang.String |
toXML(int indent)
Returns a XML representation of this object with the specified number of tab indentations |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAIN
public static final int SECONDARY
public static final int OTHER
Constructor Detail |
---|
public Keyword()
public Keyword(java.lang.String keyword)
keyword
- Keyword.Method Detail |
---|
public java.lang.String getKeyword()
public void setKeyword(java.lang.String keyword)
keyword
- Keyword.public void setType(int type) throws TVAnytimeException
type
- the type required for this Keyword
TVAnytimeException
- if the type is invalidpublic int getType()
public java.lang.String toXML()
public java.lang.String toXML(int indent)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indent)
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |