|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.database.Proxy
public class Proxy
Field Summary | |
---|---|
java.util.List<net.sf.magicproject.database.PictureConfiguration> |
pictures
The pictures configuration of this stream. |
Constructor Summary | |
---|---|
Proxy(java.io.File xmlFile)
Create a new instance of this class. |
Method Summary | |
---|---|
DatabaseCard |
getDatabaseFromStream(CardModel cardModel,
java.util.Map<java.lang.String,java.lang.String> constraints)
Create a new DatabaseCard from the given CardModel. |
java.lang.String |
getEncoding()
Return the encoding of stream retrieved from the proxy URL. |
java.lang.String |
getGlobalValueFromLocal(java.lang.String nameSpace,
java.lang.String localValue)
Return the referenced value of this proxy. |
java.lang.String |
getHome()
Return the proxy web site providing the data. |
java.lang.String |
getLanguage()
Return the language of this proxy. |
java.util.List<java.lang.String> |
getLocalPictures(CardModel cardModel,
java.util.Map<java.lang.String,TranslatableData> data)
Return a list of local picture paths considering proxy, properties and the given card. |
java.lang.String |
getLocalValueFromGlobal(java.lang.String nameSpace,
java.lang.String localValue)
Return the referenced value of this proxy. |
java.lang.String |
getName()
The proxy's name as displayed in the GUI menus |
java.util.List<java.lang.String> |
getRemotePictures(CardModel cardModel,
java.util.Map<java.lang.String,TranslatableData> data)
Return a list of remote picture paths considering proxy, properties and the given card. |
java.lang.String |
getXmlName()
Return the XML name of this proxy. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.List<net.sf.magicproject.database.PictureConfiguration> pictures
Constructor Detail |
---|
public Proxy(java.io.File xmlFile) throws java.io.IOException, org.xml.sax.SAXException
xmlFile
- the definition file of this proxy.
java.io.IOException
- If some other I/O error occurs
org.xml.sax.SAXException
- If some XML parse error occursMethod Detail |
---|
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getXmlName()
public DatabaseCard getDatabaseFromStream(CardModel cardModel, java.util.Map<java.lang.String,java.lang.String> constraints) throws java.io.IOException
cardModel
- the object containing the card name.constraints
- set of constraints
java.io.IOException
- If some other I/O error occurspublic java.lang.String getEncoding()
public java.lang.String getHome()
public java.lang.String getLanguage()
public java.lang.String getGlobalValueFromLocal(java.lang.String nameSpace, java.lang.String localValue)
nameSpace
- the name space (property)localValue
- the private-proxy value
public java.lang.String getLocalValueFromGlobal(java.lang.String nameSpace, java.lang.String localValue)
nameSpace
- localValue
-
public java.util.List<java.lang.String> getRemotePictures(CardModel cardModel, java.util.Map<java.lang.String,TranslatableData> data)
cardModel
- the card model.data
- the translated data.
public java.util.List<java.lang.String> getLocalPictures(CardModel cardModel, java.util.Map<java.lang.String,TranslatableData> data)
cardModel
- the card model.data
- the translated data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |