Data Request Broker
2-3-release

fr.gael.drb.xsd
Class XsdLengthFacet

java.lang.Object
  extended by fr.gael.drb.xsd.XsdFacet
      extended by fr.gael.drb.xsd.XsdLengthFacet
All Implemented Interfaces:
ValueValidator

public class XsdLengthFacet
extends XsdFacet

Declaration of an XML-Schema length Facet.


Field Summary
protected  String targetNamespace
          The target namespace of this type.
 
Fields inherited from class fr.gael.drb.xsd.XsdFacet
ENUMERATION_ID, FRACTION_DIGITS_ID, LENGTH_ID, MAX_EXCLUSIVE_ID, MAX_INCLUSIVE_ID, MAX_LENGTH_ID, MIN_EXCLUSIVE_ID, MIN_INCLUSIVE_ID, MIN_LENGTH_ID, PATTERN_ID, TOTAL_DIGITS_ID, VALUE_TAG, WHITE_SPACE_ID
 
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.
 int getId()
          Identifier of this facet.
 String getName()
          The name of this facet.
 String getTargetNamespace()
          Returns the target namespace of this type.
 Value getValue()
          The length value
 boolean isValid(Value v)
          Validates the present value.
 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
 

Field Detail

targetNamespace

protected String targetNamespace
The target namespace of this type.

Method Detail

getId

public final int getId()
Identifier of this facet.

Specified by:
getId in class XsdFacet
Returns:
Identifier of this facet.

getValue

public final Value getValue()
The length value

Overrides:
getValue in class XsdFacet
Returns:
The length value

getName

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

Specified by:
getName in class XsdFacet
Returns:
The name of this facet.

isValid

public boolean isValid(Value v)
Validates the present value.

Parameters:
v - the value
Returns:
true if this value satifies the type definition, else false

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 .