tauZaman
v0.1

tauzaman.property
Class ImportFormat

java.lang.Object
  |
  +--tauzaman.property.ImportFormat

public class ImportFormat
extends java.lang.Object

ImportFormat class represents a import format information that is used to parse a value which was parsed using other property. (indirection) Some properties make usage of other properties (for example; now relative instant input format using instant input format) by importing them inside their values.

See Also:
Property
Status:
design complete, implementation complete

Field Summary
private  java.lang.String name
          Name of the property content of the variable will be parsed with
private  java.net.URL url
          Url of property to be used
private  java.lang.String variable
          Variable name that is stored in format string
 
Constructor Summary
ImportFormat(org.w3c.dom.Element root, java.net.URL url)
          Constructs a Format object, from given DOM node parsed from Property Specification file.
 
Method Summary
private  void formImportFormat(org.w3c.dom.Element root, java.net.URL url)
          Initializes this ImportFormat from DOM Node, which points to a importFormat element in the Property Specification file.
 java.lang.String getFormatName()
          Returns the name of the field value
 java.net.URL getFormatPropertyUrl()
          Returns the url of property
 java.lang.String getVariableName()
          Returns the name of the variable
 java.lang.String toString()
          toString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

variable

private java.lang.String variable
Variable name that is stored in format string


name

private java.lang.String name
Name of the property content of the variable will be parsed with


url

private java.net.URL url
Url of property to be used

Constructor Detail

ImportFormat

public ImportFormat(org.w3c.dom.Element root,
                    java.net.URL url)
             throws PropertyFormationException
Constructs a Format object, from given DOM node parsed from Property Specification file.

Parameters:
root - DOM Element
url - URL of Property Specification file this ImportFormat is gotten
Throws:
PropertyFormationException - if any problem occurs when parsing the property specification file
Method Detail

formImportFormat

private void formImportFormat(org.w3c.dom.Element root,
                              java.net.URL url)
                       throws PropertyFormationException
Initializes this ImportFormat from DOM Node, which points to a importFormat element in the Property Specification file.

Parameters:
root - DOM Element
url - URL of Property Specification file this ImportFormat is gotten
Throws:
PropertyFormationException - if any problem occurs when parsing the property specification file

getVariableName

public java.lang.String getVariableName()
Returns the name of the variable

Returns:
name of the variable in property format

getFormatName

public java.lang.String getFormatName()
Returns the name of the field value

Returns:
name of the field name in property format

getFormatPropertyUrl

public java.net.URL getFormatPropertyUrl()
Returns the url of property

Returns:
url of the property format

toString

public java.lang.String toString()
toString method

Overrides:
toString in class java.lang.Object
Returns:
string representation of this object

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project