Data Request Broker
2-3-release

fr.gael.drb.xsd
Class XsdFacet

java.lang.Object
  extended by fr.gael.drb.xsd.XsdFacet
All Implemented Interfaces:
ValueValidator
Direct Known Subclasses:
XsdEnumerationFacet, XsdFractionDigitsFacet, XsdLengthFacet, XsdMaxExclusiveFacet, XsdMaxInclusiveFacet, XsdMaxLengthFacet, XsdMinExclusiveFacet, XsdMinInclusiveFacet, XsdMinLengthFacet, XsdPatternFacet, XsdTotalDigitsFacet, XsdWhiteSpaceFacet

public abstract class XsdFacet
extends Object
implements ValueValidator

Declaration of an XML-Schema Facet.


Field Summary
static int ENUMERATION_ID
          xs:enumeration facet identifier.
static int FRACTION_DIGITS_ID
          xs:fractionDigits facet identifier.
static int LENGTH_ID
          xs:length facet identifier.
static int MAX_EXCLUSIVE_ID
          xs:maxExclusive facet identifier.
static int MAX_INCLUSIVE_ID
          xs:maxInclusive facet identifier.
static int MAX_LENGTH_ID
          xs:maxLength facet identifier.
static int MIN_EXCLUSIVE_ID
          xs:minExclusive facet identifier.
static int MIN_INCLUSIVE_ID
          xs:minInclusive facet identifier.
static int MIN_LENGTH_ID
          xs:minLength facet identifier.
static int PATTERN_ID
          xs:pattern facet identifier.
protected  String targetNamespace
          The target namespace of this type.
static int TOTAL_DIGITS_ID
          xs:totalDigits facet identifier.
static String VALUE_TAG
          value tag.
static int WHITE_SPACE_ID
          xs:whiteSpace facet identifier.
 
Constructor Summary
XsdFacet()
           
 
Method Summary
 XsdAnnotation getAnnotation()
          Returns annotation of this component.
 DrbAttributeList getExternalAttributes()
          Returns the external attributes of this component.
 DrbNodeList getExternalNodes()
          Returns the external nodes of this component.
abstract  int getId()
          Identifier of this facet.
abstract  String getName()
          The name of this facet.
 String getTargetNamespace()
          Returns the target namespace of this type.
 Value getValue()
          The value of this facet.
 void setAnnotation(XsdAnnotation annotation)
          Set annotation of this component.
 void setExternalAttributes(DrbAttributeList external_attributes)
          Set the external attributes of this component.
 void setExternalNodes(DrbNodeList external_nodes)
          Set the external nodes of this component.
 void setTargetNamespace(String target_namespace)
          Set the target namespace of this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.gael.drb.xsd.ValueValidator
isValid
 

Field Detail

VALUE_TAG

public static final String VALUE_TAG
value tag.

See Also:
Constant Field Values

MIN_INCLUSIVE_ID

public static final int MIN_INCLUSIVE_ID
xs:minInclusive facet identifier.

See Also:
Constant Field Values

MAX_INCLUSIVE_ID

public static final int MAX_INCLUSIVE_ID
xs:maxInclusive facet identifier.

See Also:
Constant Field Values

PATTERN_ID

public static final int PATTERN_ID
xs:pattern facet identifier.

See Also:
Constant Field Values

ENUMERATION_ID

public static final int ENUMERATION_ID
xs:enumeration facet identifier.

See Also:
Constant Field Values

MIN_LENGTH_ID

public static final int MIN_LENGTH_ID
xs:minLength facet identifier.

See Also:
Constant Field Values

MAX_LENGTH_ID

public static final int MAX_LENGTH_ID
xs:maxLength facet identifier.

See Also:
Constant Field Values

LENGTH_ID

public static final int LENGTH_ID
xs:length facet identifier.

See Also:
Constant Field Values

MIN_EXCLUSIVE_ID

public static final int MIN_EXCLUSIVE_ID
xs:minExclusive facet identifier.

See Also:
Constant Field Values

MAX_EXCLUSIVE_ID

public static final int MAX_EXCLUSIVE_ID
xs:maxExclusive facet identifier.

See Also:
Constant Field Values

WHITE_SPACE_ID

public static final int WHITE_SPACE_ID
xs:whiteSpace facet identifier.

See Also:
Constant Field Values

TOTAL_DIGITS_ID

public static final int TOTAL_DIGITS_ID
xs:totalDigits facet identifier.

See Also:
Constant Field Values

FRACTION_DIGITS_ID

public static final int FRACTION_DIGITS_ID
xs:fractionDigits facet identifier.

See Also:
Constant Field Values

targetNamespace

protected String targetNamespace
The target namespace of this type.

Constructor Detail

XsdFacet

public XsdFacet()
Method Detail

getId

public abstract int getId()
Identifier of this facet.

Returns:
the identifier of this facet.

getName

public abstract String getName()
The name of this facet.

Returns:
the name

getValue

public Value getValue()
The value of this facet.

Returns:
the value

getAnnotation

public final XsdAnnotation getAnnotation()
Returns annotation of this component.

Returns:
The annotation of this component

setAnnotation

public final void setAnnotation(XsdAnnotation annotation)
Set annotation of this component.

Parameters:
annotation - The annotation of this component

getExternalNodes

public final DrbNodeList getExternalNodes()
Returns the external nodes of this component.

Returns:
The list of the node

setExternalNodes

public final void setExternalNodes(DrbNodeList external_nodes)
Set the external nodes of this component.

Parameters:
external_nodes - The list of the node

getExternalAttributes

public final DrbAttributeList getExternalAttributes()
Returns the external attributes of this component.

Returns:
The list of attributes

setExternalAttributes

public final void setExternalAttributes(DrbAttributeList external_attributes)
Set the external attributes of this component.

Parameters:
external_attributes - The list of the attributes

getTargetNamespace

public final String getTargetNamespace()
Returns the target namespace of this type.

Returns:
the target namespace of this type.

setTargetNamespace

public final void setTargetNamespace(String target_namespace)
Set the target namespace of this type.

Parameters:
target_namespace - the target namespace of this type.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .