com.bowstreet.xml.schema
Class AttributePathData

java.lang.Object
  extended by com.bowstreet.xml.schema.AttributePathData

public class AttributePathData
extends java.lang.Object

AttributePathData provides a schema attribute data abstraction layer over an underlying schema manipulation library, to protect the developer from the details of the particular schema support library in use. An AttributePathData object may be retrieved from ElementPathData, via the ElementPathData.getAttributePathData(String attributeXPathRef) method.


Field Summary
static java.lang.String VALUE_TYPE_COMPLEX
           
static java.lang.String VALUE_TYPE_DOUBLE
           
static java.lang.String VALUE_TYPE_FLOAT
           
 
Method Summary
 java.lang.String getDefaultValue()
          Return the default value for this attribute according to the schema.
 java.util.List getEnumeratedValues()
          Return a List (possibly empty) of enumeration values for this attribute, as specified by the schema.
 java.lang.String getFixedValue()
          Return the fixed value for this attribute, if any.
 int getLength()
          Return the length of this attribute's value as specified by the schema.
 java.lang.String getMaxExclusive()
          Return maximum usage of this attribute (exclusive).
 java.lang.String getMaxInclusive()
          Return maximum usage of this attribute (inclusive).
 int getMaxLength()
          Return the maximum length of this attribute's value as specified by the schema.
 java.lang.String getMinExclusive()
          Return minimum usage of this attribute (exclusive).
 java.lang.String getMinInclusive()
          Return minimum usage of this attribute (inclusive).
 int getMinLength()
          Return the minimum length of this attribute's value as specified by the schema.
 java.lang.String getName()
          Return the name of this attribute.
 java.lang.String getPattern()
          Return the pattern (if available) for this attribute's value.
 java.lang.String getUse()
          Return the usage specifier for this attribute (optional or required).
 java.lang.String getValueType()
          Return the String representation of the value type for this attribute.
 java.lang.String getXPathRef()
          Return the XPath reference String for this attribute.
 java.lang.String toString()
          Return a string representation of this AttributePathData for debugging.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_TYPE_COMPLEX

public static final java.lang.String VALUE_TYPE_COMPLEX
See Also:
Constant Field Values

VALUE_TYPE_DOUBLE

public static final java.lang.String VALUE_TYPE_DOUBLE
See Also:
Constant Field Values

VALUE_TYPE_FLOAT

public static final java.lang.String VALUE_TYPE_FLOAT
See Also:
Constant Field Values
Method Detail

getDefaultValue

public java.lang.String getDefaultValue()
Return the default value for this attribute according to the schema.

Returns:
default value.

getEnumeratedValues

public java.util.List getEnumeratedValues()
Return a List (possibly empty) of enumeration values for this attribute, as specified by the schema.

Returns:
List of possible enumeration values for this attribute.

getFixedValue

public java.lang.String getFixedValue()
Return the fixed value for this attribute, if any.

Returns:
fixed value, or null.

getLength

public int getLength()
Return the length of this attribute's value as specified by the schema.

Returns:
length, or -1.

getMaxExclusive

public java.lang.String getMaxExclusive()
Return maximum usage of this attribute (exclusive).

Returns:
maximum usage of this attribute (exclusive).

getMaxInclusive

public java.lang.String getMaxInclusive()
Return maximum usage of this attribute (inclusive).

Returns:
maximum usage of this attribute (inclusive).

getMaxLength

public int getMaxLength()
Return the maximum length of this attribute's value as specified by the schema.

Returns:
maximum length, or -1.

getMinExclusive

public java.lang.String getMinExclusive()
Return minimum usage of this attribute (exclusive).

Returns:
minimum usage of this attribute (exclusive).

getMinInclusive

public java.lang.String getMinInclusive()
Return minimum usage of this attribute (inclusive).

Returns:
minimum usage of this attribute (inclusive).

getMinLength

public int getMinLength()
Return the minimum length of this attribute's value as specified by the schema.

Returns:
minimum length, or -1.

getName

public java.lang.String getName()
Return the name of this attribute.

Returns:
name of this attribute.

getPattern

public java.lang.String getPattern()
Return the pattern (if available) for this attribute's value.

Returns:
pattern.

getUse

public java.lang.String getUse()
Return the usage specifier for this attribute (optional or required).

Returns:
usage of this attribute (optional or required)

getValueType

public java.lang.String getValueType()
Return the String representation of the value type for this attribute.

Returns:
String representation of the value type.

getXPathRef

public java.lang.String getXPathRef()
Return the XPath reference String for this attribute.

Returns:
XPath reference String for this attribute.

toString

public java.lang.String toString()
Return a string representation of this AttributePathData for debugging.

Overrides:
toString in class java.lang.Object
Returns:
String represenation of this AttributePathData.


Copyright © 2009 IBM. All Rights Reserved.