net.sf.magicproject.database.propertyconfig
Class PropertyConfig

java.lang.Object
  extended by net.sf.magicproject.database.propertyconfig.PropertyConfig
Direct Known Subclasses:
Cache, PropertyProxyConfig

public abstract class PropertyConfig
extends java.lang.Object

Abstract class that holds information about a property name and its translation in the selected language in the LanguageManager class.

Since:
0.90
Author:
Fabrice Daugan

Method Summary
 java.lang.String getName()
          Returns the name of this property.
 java.lang.String getTranslatedName()
          Returns the translated property name.
 int hashCode()
           
 TranslatableData parseProperty(java.lang.String cardName, java.lang.String stream, Proxy proxy)
          Parse the given stream to build the associated TranslatableData object to the specified card name.
 TranslatableData parseProperty(java.lang.String cardName, XmlParser.Node node)
          Parse the given stream to build the associated TranslatableData object to the specified card name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getTranslatedName

public java.lang.String getTranslatedName()
Returns the translated property name.

Returns:
the translated property name

getName

public java.lang.String getName()
Returns the name of this property.

Returns:
the name of this property

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parseProperty

public TranslatableData parseProperty(java.lang.String cardName,
                                      XmlParser.Node node)
Parse the given stream to build the associated TranslatableData object to the specified card name.

Parameters:
cardName - the card name.
node - the node containing the data used to build the TranslatableData object.
Returns:
the TranslatableData object built from the given node.

parseProperty

public TranslatableData parseProperty(java.lang.String cardName,
                                      java.lang.String stream,
                                      Proxy proxy)
Parse the given stream to build the associated TranslatableData object to the specified card name.

Parameters:
cardName - the card name.
stream - the stream containing the data used to build the TranslatableData object.
proxy - is the proxy this data come from. Is used to translate from private-proxy to public-tbs value.
Returns:
the TranslatableData object built from the given stream.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.