public class NameAttributes extends AttributeBase
Modifier and Type | Field and Description |
---|---|
private boolean |
m_isAttribute
Name represents an attribute flag.
|
private java.lang.String |
m_name
Name text.
|
private NamespaceElement |
m_namespace
Namespace definition used by this name.
|
private java.lang.String |
m_prefix
Namespace prefix.
|
private java.lang.String |
m_uri
Namespace URI.
|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
Constructor and Description |
---|
NameAttributes()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Get name.
|
NamespaceElement |
getNamespace()
Get effective namespace definition.
|
java.lang.String |
getPrefix()
Get specified namespace prefix.
|
java.lang.String |
getUri()
Get specified namespace URI.
|
int |
hashCode() |
boolean |
isAttribute()
Get flag for an attribute name.
|
void |
setIsAttribute(boolean isattr)
Set flag for an attribute name.
|
void |
setName(java.lang.String name)
Set name.
|
void |
setPrefix(java.lang.String prefix)
Set namespace prefix.
|
void |
setUri(java.lang.String uri)
Set namespace URI.
|
void |
validate(ValidationContext vctx)
Validate attribute information.
|
prevalidate
public static final StringArray s_allowedAttributes
private java.lang.String m_name
private java.lang.String m_uri
private java.lang.String m_prefix
private boolean m_isAttribute
private NamespaceElement m_namespace
public void setIsAttribute(boolean isattr)
false
) prior to validation.isattr
- flag for name represents an attributepublic boolean isAttribute()
true
if an attribute, false
if an
elementpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- text for namepublic java.lang.String getUri()
null
if not set)public void setUri(java.lang.String uri)
uri
- namespace URI (null
if not set)public java.lang.String getPrefix()
null
if not set)public void setPrefix(java.lang.String prefix)
prefix
- namespace prefix (null
if not set)public NamespaceElement getNamespace()
public void validate(ValidationContext vctx)
AttributeBase
AttributeBase.prevalidate(org.jibx.binding.model.ValidationContext)
method will always be
called for every component in the binding definition before this method
is called for any component. This empty base class implementation should
be overridden by each subclass that requires validation handling.validate
in class AttributeBase
vctx
- validation contextpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object