An entity is described in a DTD using the ENTITY construct. It defines the type and value of the the entity.
An entity is described in a DTD using the ENTITY construct. It defines the type and value of the the entity.
(*name-2type nm)
Converts nm string to the corresponding entity type. If the string does not have a corresponding entity type, returns the type corresponding to "CDATA". Valid entity types are: "PUBLIC", "CDATA", "SDATA", "PI", "STARTTAG", "ENDTAG", "MS", "MD", "SYSTEM".
nm - the string to be converted - java.lang.String
returns: the corresponding entity type, or the type corresponding
to "CDATA", if none exists - int
Converts nm string to the corresponding entity type. If the string does not have a corresponding entity type, returns the type corresponding to "CDATA". Valid entity types are: "PUBLIC", "CDATA", "SDATA", "PI", "STARTTAG", "ENDTAG", "MS", "MD", "SYSTEM". nm - the string to be converted - `java.lang.String` returns: the corresponding entity type, or the type corresponding to "CDATA", if none exists - `int`
(->entity name type data)
Constructor.
Creates an entity.
name - the name of the entity - java.lang.String
type - the type of the entity - int
data - the char array of data - char[]
Constructor. Creates an entity. name - the name of the entity - `java.lang.String` type - the type of the entity - `int` data - the char array of data - `char[]`
(general? this)
Returns true if it is a general entity.
returns: true if it is a general entity - boolean
Returns true if it is a general entity. returns: true if it is a general entity - `boolean`
(get-data this)
Returns the data.
returns: the data - char[]
Returns the data. returns: the data - `char[]`
(get-name this)
Gets the name of the entity.
returns: the name of the entity, as a String - java.lang.String
Gets the name of the entity. returns: the name of the entity, as a String - `java.lang.String`
(get-string this)
Returns the data as a String.
returns: the data as a String - java.lang.String
Returns the data as a String. returns: the data as a String - `java.lang.String`
(get-type this)
Gets the type of the entity.
returns: the type of the entity - int
Gets the type of the entity. returns: the type of the entity - `int`
(name this)
Instance Field.
type: java.lang.String
Instance Field. type: java.lang.String
(parameter? this)
Returns true if it is a parameter entity.
returns: true if it is a parameter entity - boolean
Returns true if it is a parameter entity. returns: true if it is a parameter entity - `boolean`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close