org.jibx.binding.model
Class NamespaceElement

java.lang.Object
  extended by org.jibx.binding.model.ElementBase
      extended by org.jibx.binding.model.NamespaceElement

public class NamespaceElement
extends ElementBase

Model component for namespace element of binding definition.

Author:
Dennis M. Sosnoski

Field Summary
static int ALLDEFAULT_USAGE
           
static int ATTRIBUTES_USAGE
           
static int ELEMENTS_USAGE
           
static int NODEFAULT_USAGE
           
static StringArray s_allowedAttributes
          Enumeration of allowed attribute names
static EnumSet s_defaultEnum
           
 
Fields inherited from class org.jibx.binding.model.ElementBase
BINDING_ELEMENT, COLLECTION_ELEMENT, ELEMENT_NAMES, FORMAT_ELEMENT, INCLUDE_ELEMENT, INPUT_ELEMENT, MAPPING_ELEMENT, NAMESPACE_ELEMENT, OUTPUT_ELEMENT, SPLIT_ELEMENT, STRUCTURE_ELEMENT, TEMPLATE_ELEMENT, VALUE_ELEMENT
 
Constructor Summary
NamespaceElement()
          Constructor.
 
Method Summary
 String getDefaultName()
          Get namespace default type name.
 String getPrefix()
          Get prefix.
 String getUri()
          Get namespace URI.
 boolean isAttributeDefault()
          Check if default namespace for attributes.
 boolean isElementDefault()
          Check if default namespace for elements.
 void prevalidate(ValidationContext vctx)
          Prevalidate attributes of element in isolation.
 void setDefaultName(String name)
          Set namespace default type name.
 void setPrefix(String text)
          Set prefix.
 void setUri(String uri)
          Set namespace URI.
 
Methods inherited from class org.jibx.binding.model.ElementBase
getComment, name, setComment, toString, type, validate, validateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s_allowedAttributes

public static final StringArray s_allowedAttributes
Enumeration of allowed attribute names


NODEFAULT_USAGE

public static final int NODEFAULT_USAGE
See Also:
Constant Field Values

ELEMENTS_USAGE

public static final int ELEMENTS_USAGE
See Also:
Constant Field Values

ATTRIBUTES_USAGE

public static final int ATTRIBUTES_USAGE
See Also:
Constant Field Values

ALLDEFAULT_USAGE

public static final int ALLDEFAULT_USAGE
See Also:
Constant Field Values

s_defaultEnum

public static final EnumSet s_defaultEnum
Constructor Detail

NamespaceElement

public NamespaceElement()
Constructor.

Method Detail

getPrefix

public String getPrefix()
Get prefix.

Returns:
prefix text

setPrefix

public void setPrefix(String text)
Set prefix.

Parameters:
text - prefix text

getUri

public String getUri()
Get namespace URI.

Returns:
namespace URI (null if no-namespace namespace)

setUri

public void setUri(String uri)
Set namespace URI.

Parameters:
uri - namespace URI (null if no-namespace namespace)

setDefaultName

public void setDefaultName(String name)
Set namespace default type name.

Parameters:
name - namespace default type

getDefaultName

public String getDefaultName()
Get namespace default type name.

Returns:
namespace default type name

isAttributeDefault

public boolean isAttributeDefault()
Check if default namespace for attributes. This method is only meaningful after a call to prevalidate(ValidationContext).

Returns:
true if default namespace for attributes, false if not

isElementDefault

public boolean isElementDefault()
Check if default namespace for elements. This method is only meaningful after a call to prevalidate(ValidationContext).

Returns:
true if default namespace for elements, false if not

prevalidate

public void prevalidate(ValidationContext vctx)
Prevalidate attributes of element in isolation.

Overrides:
prevalidate in class ElementBase
Parameters:
vctx - validation context


Copyright © 2005-2011 jibx.org. All Rights Reserved.