org.geotools.xml.xLink
Class XLinkSchema.Href

java.lang.Object
  extended byorg.geotools.xml.xLink.XLinkSchema.XLinkAttribute
      extended byorg.geotools.xml.xLink.XLinkSchema.Href
All Implemented Interfaces:
Attribute
Enclosing class:
XLinkSchema

public static class XLinkSchema.Href
extends XLinkSchema.XLinkAttribute

Href purpose.

Represents an Href Attribute in the XLink Schema

Version:
$Id: XLinkSchema.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
dzwiers, Refractions Research, Inc. http://www.refractions.net, $Author:$ (last modification)

Field Summary
 
Fields inherited from interface org.geotools.xml.schema.Attribute
OPTIONAL, PROHIBITED, REQUIRED
 
Constructor Summary
XLinkSchema.Href()
          Href constructor Creates an instance of the Href Attribute of the XLink Schema.
XLinkSchema.Href(int use)
          Href constructor.
 
Method Summary
 java.lang.String getFixed()
           This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.
static Attribute getInstance()
          Returns a copy of the default instance.
 java.lang.String getName()
           The name of the attribute specified if one was provided in the attribute declaration
 SimpleType getSimpleType()
           Provides a reference to the simpleType which defines the data type of this attribute.
 int getUse()
           Attributes only have three options for the number or occurences: none, once, optionally once.
 
Methods inherited from class org.geotools.xml.xLink.XLinkSchema.XLinkAttribute
getDefault, getId, getNamespace, isForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XLinkSchema.Href

public XLinkSchema.Href(int use)
Href constructor.

Creates an instance of the Href Attribute of the XLink Schema

Parameters:
use -
See Also:
Attribute.getUse()

XLinkSchema.Href

public XLinkSchema.Href()
Href constructor

Creates an instance of the Href Attribute of the XLink Schema. Sets the usage to Optional.

Method Detail

getInstance

public static Attribute getInstance()
Returns a copy of the default instance.

Returns:
A default instance

getFixed

public java.lang.String getFixed()
Description copied from interface: Attribute

This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.

Returns:
Fixed Value as a String or Null

getName

public java.lang.String getName()
Description copied from interface: Attribute

The name of the attribute specified if one was provided in the attribute declaration

Returns:
See Also:
schema.Attribute#getName()

getUse

public int getUse()
Description copied from interface: Attribute

Attributes only have three options for the number or occurences: none, once, optionally once. This method returns the mask which represents the use of this attribute.

Returns:
See Also:
schema.Attribute#getUse()

getSimpleType

public SimpleType getSimpleType()
Description copied from interface: Attribute

Provides a reference to the simpleType which defines the data type of this attribute.

Returns:
See Also:
schema.Attribute#getSimpleType()


Copyright © GeoTools. All Rights Reserved.