xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.javasourcecode
Class RepositoryLocationImpl

java.lang.Object
  extended byedu.uci.isr.xarch.javasourcecode.RepositoryLocationImpl
All Implemented Interfaces:
DOMBased, IRepositoryLocation, IXArchElement

public class RepositoryLocationImpl
extends Object
implements IRepositoryLocation, DOMBased

DOM-Based implementation of the IRepositoryLocation interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String FILE_NAME_ATTR_NAME
          Tag name for fileNames in this object.
static String PATH_ATTR_NAME
          Tag name for paths in this object.
static String URL_ELT_NAME
          Tag name for urls in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.javasourcecode.IRepositoryLocation
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
RepositoryLocationImpl(Element elt)
           
 
Method Summary
 void clearFileName()
          Removes the fileName attribute from this object.
 void clearPath()
          Removes the path attribute from this object.
 void clearUrl()
          Clear the url from this RepositoryLocation.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 String getFileName()
          Gets the value of the fileName attribute on this object.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 String getPath()
          Gets the value of the path attribute on this object.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXMLLink getUrl()
          Get the url from this RepositoryLocation.
 IXArch getXArch()
           
 boolean hasFileName(String fileName)
          Determines if this object's fileName attribute has the given value.
 int hashCode()
           
 boolean hasPath(String path)
          Determines if this object's path attribute has the given value.
 boolean hasUrl(IXMLLink value)
          Determine if this RepositoryLocation has the given url
 boolean isEquivalent(IRepositoryLocation c)
          Determine if another RepositoryLocation is equivalent to this one, ignoring ID's.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setFileName(String fileName)
          Set the fileName attribute on this object.
 void setPath(String path)
          Set the path attribute on this object.
 void setUrl(IXMLLink value)
          Set the url for this RepositoryLocation.
 void setXArch(IXArch xArch)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_TYPE_NSURI

public static final String XSD_TYPE_NSURI
See Also:
Constant Field Values

XSD_TYPE_NAME

public static final String XSD_TYPE_NAME
See Also:
Constant Field Values

xArch

protected IXArch xArch

FILE_NAME_ATTR_NAME

public static final String FILE_NAME_ATTR_NAME
Tag name for fileNames in this object.

See Also:
Constant Field Values

PATH_ATTR_NAME

public static final String PATH_ATTR_NAME
Tag name for paths in this object.

See Also:
Constant Field Values

URL_ELT_NAME

public static final String URL_ELT_NAME
Tag name for urls in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

RepositoryLocationImpl

public RepositoryLocationImpl(Element elt)
Method Detail

getDOMNode

public Node getDOMNode()
Description copied from interface: DOMBased
Gets the DOM node on which this implementation is based.

Specified by:
getDOMNode in interface DOMBased
Returns:
DOM node

setDOMNode

public void setDOMNode(Node node)
Description copied from interface: DOMBased
Sets the DOM node on which this implementation is based.

Specified by:
setDOMNode in interface DOMBased
Parameters:
node - DOM node

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

setXArch

public void setXArch(IXArch xArch)
Specified by:
setXArch in interface IXArchElement

getXArch

public IXArch getXArch()
Specified by:
getXArch in interface IXArchElement

cloneElement

public IXArchElement cloneElement(int depth)
Specified by:
cloneElement in interface IXArchElement

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getTypeMetadata

public XArchTypeMetadata getTypeMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the xsi:type of this element.

Specified by:
getTypeMetadata in interface IXArchElement
Returns:
metadata describing the xsi:type of this element.

getInstanceMetadata

public XArchInstanceMetadata getInstanceMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the instance of this element.

Specified by:
getInstanceMetadata in interface IXArchElement
Returns:
metadata describing the instance of this element.

setFileName

public void setFileName(String fileName)
Set the fileName attribute on this object.

Specified by:
setFileName in interface IRepositoryLocation
Parameters:
fileName - attribute value.

clearFileName

public void clearFileName()
Removes the fileName attribute from this object.

Specified by:
clearFileName in interface IRepositoryLocation

getFileName

public String getFileName()
Gets the value of the fileName attribute on this object.

Specified by:
getFileName in interface IRepositoryLocation
Returns:
fileName attribute's value or null if that attribute is not set.

hasFileName

public boolean hasFileName(String fileName)
Determines if this object's fileName attribute has the given value.

Specified by:
hasFileName in interface IRepositoryLocation
Parameters:
fileName - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

setPath

public void setPath(String path)
Set the path attribute on this object.

Specified by:
setPath in interface IRepositoryLocation
Parameters:
path - attribute value.

clearPath

public void clearPath()
Removes the path attribute from this object.

Specified by:
clearPath in interface IRepositoryLocation

getPath

public String getPath()
Gets the value of the path attribute on this object.

Specified by:
getPath in interface IRepositoryLocation
Returns:
path attribute's value or null if that attribute is not set.

hasPath

public boolean hasPath(String path)
Determines if this object's path attribute has the given value.

Specified by:
hasPath in interface IRepositoryLocation
Parameters:
path - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

setUrl

public void setUrl(IXMLLink value)
Description copied from interface: IRepositoryLocation
Set the url for this RepositoryLocation.

Specified by:
setUrl in interface IRepositoryLocation
Parameters:
value - new url

clearUrl

public void clearUrl()
Description copied from interface: IRepositoryLocation
Clear the url from this RepositoryLocation.

Specified by:
clearUrl in interface IRepositoryLocation

getUrl

public IXMLLink getUrl()
Description copied from interface: IRepositoryLocation
Get the url from this RepositoryLocation.

Specified by:
getUrl in interface IRepositoryLocation
Returns:
url

hasUrl

public boolean hasUrl(IXMLLink value)
Description copied from interface: IRepositoryLocation
Determine if this RepositoryLocation has the given url

Specified by:
hasUrl in interface IRepositoryLocation
Parameters:
value - url to compare
Returns:
true if the urls are equivalent, false otherwise

isEquivalent

public boolean isEquivalent(IRepositoryLocation c)
Description copied from interface: IRepositoryLocation
Determine if another RepositoryLocation is equivalent to this one, ignoring ID's.

Specified by:
isEquivalent in interface IRepositoryLocation
Parameters:
c - RepositoryLocation to compare to this one.
Returns:
true if all the child elements of this RepositoryLocation are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library