public class XmlAttribute extends java.lang.Object implements XmlAttributeItem
Constructor and Description |
---|
XmlAttribute(XmlDataWorkspace ws,
XmlDataAttributeTag aName,
XmlSimpleType st)
Defines a global attribute with unconstrained String content.
|
XmlAttribute(XmlDataWorkspace ws,
XmlDataAttributeTag atName,
XmlSimpleType st,
boolean required)
Defines a local attribute with unconstrained String content.
|
Modifier and Type | Method and Description |
---|---|
NSField |
getField()
Creates NSField that defines the attribute.
|
public XmlAttribute(XmlDataWorkspace ws, XmlDataAttributeTag aName, XmlSimpleType st)
ws
- the XmlDataWorkspaceaName
- the attribute namest
- an instance of XmlSimpleType() or null. At present, they achieve the same effect: simple unconstrained String.public XmlAttribute(XmlDataWorkspace ws, XmlDataAttributeTag atName, XmlSimpleType st, boolean required)
ws
- the XmlDataWorkspaceatName
- the attribute namest
- an instance of XmlSimpleType() or null. Ar present, they achieve the same effect: simple unconstrained String.required
- indicates whether the attribute is required