local.tomas.vcard.impl
Class VCardConfiguration

java.lang.Object
  extended by local.tomas.common.dom.DomConfiguration
      extended by local.tomas.vcard.impl.VCardConfiguration

public class VCardConfiguration
extends local.tomas.common.dom.DomConfiguration


Field Summary
 
Fields inherited from class local.tomas.common.dom.DomConfiguration
root
 
Constructor Summary
VCardConfiguration(java.io.File file)
           
VCardConfiguration(java.io.InputStream in)
           
 
Method Summary
 void defineSingleType(java.lang.String name, VCardParameters parameters, int length, boolean replace)
           
 void defineStructuredType(java.lang.String name, VCardParameters parameters, java.util.SortedMap<java.lang.Integer,java.lang.Integer> components, boolean replace)
           
 VCardConfiguration findSubConfiguration(VType type)
           
 org.w3c.dom.Node[] getAllTypes(java.lang.String name)
           
 java.lang.String[] getCharsets(java.lang.String name)
           
 java.lang.String[] getComponentNames(java.lang.String name)
           
 org.w3c.dom.Node[] getComponentNodes(java.lang.String name)
           
 java.lang.String getFormat(java.lang.String name)
           
 VCardPropertyImplementation getImplementation(java.lang.String name)
           
 VCardPropertyImplementation getImplementation(java.lang.String name, java.lang.String componentName)
           
 int getLength(java.lang.String name)
           
 int getLength(java.lang.String name, java.lang.String componentName)
           
 java.lang.String[] getParameterNames(java.lang.String name)
           
 java.lang.String[] getParameterValues(java.lang.String name, java.lang.String paramName)
           
 VCardConfiguration getParentConfiguration()
           
 VCardConfiguration getSubConfiguration(java.lang.String name)
           
 java.lang.String[] getSubConfigurationNames()
           
 java.lang.Integer getTelTypes()
           
 VType getType()
           
 org.w3c.dom.Node getType(java.lang.String name)
           
 java.lang.String[] getTypeNames()
           
 org.w3c.dom.Node[] getTypeNodes()
           
 boolean isRequired(java.lang.String name)
           
 boolean isRequired(java.lang.String name, java.lang.String componentName)
           
static VCardConfiguration loadDefault(VType type)
           
 void setTelTypes(java.lang.Integer telTypes)
           
 
Methods inherited from class local.tomas.common.dom.DomConfiguration
createAttribute, createElement, dump, getNode, getNode, getNodeArray, getNodeArray, getProperties, getProperties, getSubConfiguration, getValue, getValue, getValueArray, getValueArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCardConfiguration

public VCardConfiguration(java.io.File file)
                   throws java.io.IOException,
                          org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

VCardConfiguration

public VCardConfiguration(java.io.InputStream in)
                   throws org.xml.sax.SAXException,
                          java.io.IOException
Throws:
org.xml.sax.SAXException
java.io.IOException
Method Detail

getType

public VType getType()

loadDefault

public static VCardConfiguration loadDefault(VType type)
                                      throws java.io.IOException,
                                             org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

getSubConfiguration

public VCardConfiguration getSubConfiguration(java.lang.String name)
Overrides:
getSubConfiguration in class local.tomas.common.dom.DomConfiguration

findSubConfiguration

public VCardConfiguration findSubConfiguration(VType type)

getParentConfiguration

public VCardConfiguration getParentConfiguration()

getSubConfigurationNames

public java.lang.String[] getSubConfigurationNames()

getTelTypes

public java.lang.Integer getTelTypes()

setTelTypes

public void setTelTypes(java.lang.Integer telTypes)

getType

public org.w3c.dom.Node getType(java.lang.String name)

getFormat

public java.lang.String getFormat(java.lang.String name)

getTypeNodes

public org.w3c.dom.Node[] getTypeNodes()

getTypeNames

public java.lang.String[] getTypeNames()

getParameterNames

public java.lang.String[] getParameterNames(java.lang.String name)

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name,
                                             java.lang.String paramName)

getComponentNodes

public org.w3c.dom.Node[] getComponentNodes(java.lang.String name)

getComponentNames

public java.lang.String[] getComponentNames(java.lang.String name)

isRequired

public boolean isRequired(java.lang.String name)

isRequired

public boolean isRequired(java.lang.String name,
                          java.lang.String componentName)

getImplementation

public VCardPropertyImplementation getImplementation(java.lang.String name,
                                                     java.lang.String componentName)
                                              throws VCardException
Throws:
VCardException

getImplementation

public VCardPropertyImplementation getImplementation(java.lang.String name)
                                              throws VCardException
Throws:
VCardException

getLength

public int getLength(java.lang.String name)

getLength

public int getLength(java.lang.String name,
                     java.lang.String componentName)

getCharsets

public java.lang.String[] getCharsets(java.lang.String name)

defineSingleType

public void defineSingleType(java.lang.String name,
                             VCardParameters parameters,
                             int length,
                             boolean replace)

getAllTypes

public org.w3c.dom.Node[] getAllTypes(java.lang.String name)

defineStructuredType

public void defineStructuredType(java.lang.String name,
                                 VCardParameters parameters,
                                 java.util.SortedMap<java.lang.Integer,java.lang.Integer> components,
                                 boolean replace)


Copyright © 2007 null. All Rights Reserved.