public class Utilities extends Object
Modifier and Type | Field and Description |
---|---|
static String |
attribute_canonicalKey_type_separator |
static String |
fpi_mainlevel_separator |
static String |
PI_TARGET_TDOM |
static String |
prefix_local_anchor |
protected static String |
PUBLIC_IDENTIFIER_OWNER_BANDM |
static String |
PUBLIC_IDENTIFIER_PREFIX_BANDM
Since we are a domain owner, we automatically have a *registered*
"Formal Public Identifier".
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addTdomPI_documentId(DTD.Dtd dtd)
Add a process instruction to tdom, containing the document id of the
Dtd.
|
static String |
canonicalKey_att_name_type(DTD.AttDef attDef)
Makes the string used as key into maps/sets which unify different
kinds of markup declaration.
|
static String |
canonicalKey_attribute(String name)
Makes the string used as key into maps/sets which unify different
kinds of markup declaration.
|
static String |
canonicalKey_element(String name)
Makes the string used as key into maps/sets which unify different
kinds of markup declaration.
|
static String |
canonicalKey_entity(String name,
boolean attribute)
Makes the string used as key into maps/sets which unify different
kinds of markup declaration.
|
static String |
canonicalKey(DTD.Attlist attribute)
Makes the string used as key into maps/sets which unify different
kinds of markup declaration.
|
static String |
canonicalKey(DTD.Element element)
Makes the string used as key into maps/sets which unify different
kinds of markup declaration.
|
static String |
canonicalKey(DTD.Entity entity)
Makes the string used as key into maps/sets which unify different
kinds of markup declaration.
|
static URL |
constUrl(String c)
Makes a URL from a constant which is KNOWN to be syntactically correct.
|
static String |
fpi_extractDescription(String fpi)
Extracts the underlined part, which is used BY US as a file identifier:
|
static Set<String> |
getAllPiAsString(String target,
DTD.Dtd dtd)
Collect the text values of all PIs with a given target.
|
static String |
make_formal_public_identifier_bandm(String fip_class,
String description,
String language) |
static String |
make_formal_public_identifier_bandm(String fip_class,
String description,
String language,
String version) |
static String |
make_formal_public_identifier(String owner,
String fip_class,
String description,
String language,
String version)
Makes something like
|
protected static void |
nullcheck(Object o,
String t) |
static String |
quoteAttributeValue(String s) |
protected static final String PUBLIC_IDENTIFIER_OWNER_BANDM
public static final String fpi_mainlevel_separator
public static final String PUBLIC_IDENTIFIER_PREFIX_BANDM
public static final String attribute_canonicalKey_type_separator
public static final String prefix_local_anchor
public static final String PI_TARGET_TDOM
public static final URL constUrl(String c)
public static final String make_formal_public_identifier(String owner, String fip_class, String description, String language, String version)
+//IDN bandm.eu//DTD a.b.c.d//en//1.0Documentaiton on FPIs is in the http://en.wikipedia.org/wiki/Formal_Public_Identifier
public static final String make_formal_public_identifier_bandm(String fip_class, String description, String language, String version)
public static final String make_formal_public_identifier_bandm(String fip_class, String description, String language)
public static String fpi_extractDescription(String fpi)
+//IDN bandm.eu//DTD a/b/c.dtd //en//1.0 ^^^^^^^^^Returns null in case of error, which includes the epsilon string.
public static final String canonicalKey_element(String name)
public static final String canonicalKey(DTD.Element element)
public static final String canonicalKey_attribute(String name)
public static final String canonicalKey(DTD.Attlist attribute)
public static final String canonicalKey_entity(String name, boolean attribute)
public static final String canonicalKey(DTD.Entity entity)
public static final String canonicalKey_att_name_type(DTD.AttDef attDef)
public static Set<String> getAllPiAsString(String target, DTD.Dtd dtd)
String.equalsIgnoreCase(String)
public static boolean addTdomPI_documentId(DTD.Dtd dtd)
<?tdom PUBLIC ...?>
" allows a dtd to declare its own
public and system id.
This information will be used by tdom e.g. to insert the dtd-based
text type declaration into the printings of model instances.
This method inserts such a PI (at position zero of the markup),
iff there is an documentId!=null set in the dtd, and no such PI
already exists.
(So the method is idempotent)
XMLDocumentIdentifier.toString()
.see also the complete user documentation .