public class STMLAttribute extends nu.xom.Attribute implements XMLConstants
| Modifier and Type | Field and Description |
|---|---|
protected String |
attributeGroupName |
protected STMLType |
cmlType |
static String |
CONSTANT_TO_SI |
static String |
CONVENTION |
protected String |
description |
static String |
DICTREF |
static String |
ID |
static String |
MULTIPLIER_TO_SI |
protected String |
summary |
static String |
TITLE |
static String |
UNITS |
ATTRIBUTES, AUTOGENERATED_DONOTEDIT_S, BANNER_S, CATALOG_XML, CML_SIUNITS, CML_UNITS, ELEMENTS, FPX_REAL, JAVA_ARRAY, JAVA_BOOL, JAVA_BOOLEAN, JAVA_DOUB, JAVA_DOUBLE, JAVA_INT, JAVA_INTEGER, JAVA_STRING, PATTERN_ANYURI, PATTERN_QNAME, SVG_NS, SVG_NS_BASE, SVG_XPATH, TYPES, U_ANGSTROM, U_CELSIUS, U_DEGREE, U_KCAL, WARNING_S, X_OR, XHTML_NS, XLINK_NS, XLINK_PREFIX, XML_SUFF, XMLNS, XPATH_XSD, XSD_ANNOTATION, XSD_ANYURI, XSD_ATTRIBUTE, XSD_ATTRIBUTE_GROUP, XSD_BOOLEAN, XSD_COMPLEX_TYPE, XSD_DATE, XSD_DOCUMENTATION, XSD_DOUBLE, XSD_ELEMENT, XSD_ENUMERATION, XSD_EXTENSION, XSD_FLOAT, XSD_INTEGER, XSD_LENGTH, XSD_LIST, XSD_MAXEXCLUSIVE, XSD_MAXINCLUSIVE, XSD_MINEXCLUSIVE, XSD_MININCLUSIVE, XSD_NONNEGATIVEINTEGER, XSD_NS, XSD_PATTERN, XSD_POSITIVE_NUMBER, XSD_POSITIVEINTEGER, XSD_PREFIX, XSD_QNAME, XSD_RESTRICTION, XSD_SIMPLE_CONTENT, XSD_SIMPLE_TYPE, XSD_STRING, XSD_SUFF, XSD_UNION, XSD_XMLNSC_AMP, C_APOS, C_ATSIGN, C_BACKSLASH, C_BACKSPACE, C_CARET, C_COLON, C_COMMA, C_DEL, C_DOLLAR, C_EQUALS, C_FORMFEED, C_HASH, C_LANGLE, C_LBRAK, C_LCURLY, C_LSQUARE, C_MINUS, C_NBSP, C_NEWLINE, C_NL, C_PERCENT, C_PERIOD, C_PIPE, C_PLUS, C_POUND, C_QUERY, C_QUOT, C_RANGLE, C_RBRAK, C_RCURLY, C_RETURN, C_RSQUARE, C_SEMICOLON, C_SHRIEK, C_SLASH, C_SPACE, C_STAR, C_TAB, C_TILDE, C_UNDER, EPS, F_S, NONWHITEPUNC, NONWHITEPUNC0, NONWHITEPUNC0REGEX, ONE_THIRD, PUNC, S_AMP, S_APOS, S_ATSIGN, S_BACKSLASH, S_CARET, S_COLON, S_COMMA, S_DOLLAR, S_EMPTY, S_EQUALS, S_FORMFEED, S_HASH, S_LANGLE, S_LBRAK, S_LCURLY, S_LSQUARE, S_MINUS, S_NEWLINE, S_NL, S_PERCENT, S_PERIOD, S_PIPE, S_PLUS, S_POUND, S_QUERY, S_QUOT, S_RANGLE, S_RBRAK, S_RCURLY, S_RETURN, S_RSQUARE, S_SEMICOLON, S_SHRIEK, S_SLASH, S_SPACE, S_STAR, S_TAB, S_TILDE, S_UNDER, S_WHITEREGEX, TWO_THIRDS, U_S, WHITESPACE| Modifier | Constructor and Description |
|---|---|
|
STMLAttribute(nu.xom.Attribute att)
semi copy constructor
|
protected |
STMLAttribute(nu.xom.Attribute att,
String value)
copy constructor from empty attribute.
|
|
STMLAttribute(STMLAttribute att)
copy constructor
|
|
STMLAttribute(String name)
creates attribute without value.
|
|
STMLAttribute(String name,
String value)
creates attribute.
|
protected |
STMLAttribute(String name,
String URI,
String value)
creates attribute.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(nu.xom.Attribute att)
compares attributes.
|
nu.xom.Attribute |
copy()
makes copy of correct class.
|
String |
getAttributeGroupName()
gets attributeGroup name.
|
STMLType |
getCmlType() |
String |
getDescription()
get Documentation.
|
String |
getJavaGetMethod()
get Java get method.
|
String |
getJavaSetMethod()
get Java set method default
|
String |
getJavaShortClassName()
get Java ShortClassName.
|
String |
getJavaType()
get JavaType default
|
STMLType |
getSchemaType()
get schema type.
|
Object |
getSTMLValue()
returns value as a typed object.
|
String |
getSummary()
get documentation summary.
|
void |
setAttributeGroupName(String agn)
sets attributeGroup name.
|
void |
setCmlType(STMLType cmlType) |
void |
setDescription(String d)
set Documentation.
|
void |
setSchemaType(STMLType schemaType)
set schema type.
|
void |
setSTMLValue(String s)
sets value.
|
void |
setSummary(String s)
set documentation summary.
|
getChild, getChildCount, getLocalName, getNamespacePrefix, getNamespaceURI, getQualifiedName, getType, getValue, setLocalName, setNamespace, setType, setValue, toString, toXMLpublic static final String CONSTANT_TO_SI
public static final String CONVENTION
public static final String DICTREF
public static final String ID
public static final String MULTIPLIER_TO_SI
public static final String TITLE
public static final String UNITS
protected STMLType cmlType
protected String summary
protected String description
protected String attributeGroupName
public STMLAttribute(String name)
name - public STMLAttribute(String name, String value)
name - value - protected STMLAttribute(String name, String URI, String value) throws nu.xom.NamespaceConflictException
name - must be qualified (colonized)URI - namespacevalue - nu.xom.NamespaceConflictException - probably no prefix in namepublic STMLAttribute(STMLAttribute att)
att - public STMLAttribute(nu.xom.Attribute att)
att - protected STMLAttribute(nu.xom.Attribute att,
String value)
att - to copyvalue - to add (may throw CMLRuntime)public nu.xom.Attribute copy()
copy in class nu.xom.Attributepublic void setAttributeGroupName(String agn)
agn - attributeGroup namepublic String getAttributeGroupName()
public int compareTo(nu.xom.Attribute att)
att - to comparepublic String getJavaType()
public String getJavaSetMethod()
public String getJavaGetMethod()
public String getJavaShortClassName()
public STMLType getSchemaType()
public void setSchemaType(STMLType schemaType)
schemaType - could be nullpublic Object getSTMLValue()
public void setSTMLValue(String s)
s - the valuepublic String getSummary()
public void setSummary(String s)
s - the summarypublic String getDescription()
public void setDescription(String d)
d - the descriptionpublic STMLType getCmlType()
public void setCmlType(STMLType cmlType)
cmlType - the cmlType to setCopyright © 1994–2024 Peter Murray-Rust. All rights reserved.