/** * PersonNameType.java * */ package com.PersonName; public class PersonNameType extends com.xml.Node { public PersonNameType(PersonNameType node) { super(node); } public PersonNameType(org.w3c.dom.Node node) { super(node); } public PersonNameType(org.w3c.dom.Document doc) { super(doc); } public PersonNameType(com.xml.Document doc, String namespaceURI, String prefix, String name) { super(doc, namespaceURI, prefix, name); } public void adjustPrefix() { for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "script" ); tmpNode != null; tmpNode = getDomNextChild( Attribute, null, "script", tmpNode ) ) { internalAdjustPrefix(tmpNode, false); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "LegalName" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "LegalName", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "GivenName" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "GivenName", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); new FamilyNameType(tmpNode).adjustPrefix(); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "Affix" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "Affix", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); new AffixType(tmpNode).adjustPrefix(); } for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript" ); tmpNode != null; tmpNode = getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript", tmpNode ) ) { internalAdjustPrefix(tmpNode, true); new AlternateScriptType(tmpNode).adjustPrefix(); } } public static int getscriptMinCount() { return 0; } public static int getscriptMaxCount() { return 1; } public int getscriptCount() { return getDomChildCount(Attribute, null, "script"); } public boolean hasscript() { return hasDomChild(Attribute, null, "script"); } public SchemaString newscript() { return new SchemaString(); } public SchemaString getscriptAt(int index) throws Exception { return new SchemaString(getDomNodeValue(dereference(getDomChildAt(Attribute, null, "script", index)))); } public org.w3c.dom.Node getStartingscriptCursor() throws Exception { return getDomFirstChild(Attribute, null, "script" ); } public org.w3c.dom.Node getAdvancedscriptCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Attribute, null, "script", curNode ); } public SchemaString getscriptValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new SchemaString(getDomNodeValue( dereference(curNode) ) ); } public SchemaString getscript() throws Exception { return getscriptAt(0); } public void removescriptAt(int index) { removeDomChildAt(Attribute, null, "script", index); } public void removescript() { while (hasscript()) removescriptAt(0); } public void addscript(SchemaString value) { if( value.isNull() == false ) { appendDomChild(Attribute, null, "script", value.toString()); } } public void addscript(String value) throws Exception { addscript(new SchemaString(value)); } public void insertscriptAt(SchemaString value, int index) { insertDomChildAt(Attribute, null, "script", index, value.toString()); } public void insertscriptAt(String value, int index) throws Exception { insertscriptAt(new SchemaString(value), index); } public void replacescriptAt(SchemaString value, int index) { replaceDomChildAt(Attribute, null, "script", index, value.toString()); } public void replacescriptAt(String value, int index) throws Exception { replacescriptAt(new SchemaString(value), index); } public static int getFormattedNameMinCount() { return 0; } public static int getFormattedNameMaxCount() { return 1; } public int getFormattedNameCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName"); } public boolean hasFormattedName() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName"); } public SchemaString newFormattedName() { return new SchemaString(); } public SchemaString getFormattedNameAt(int index) throws Exception { return new SchemaString(getDomNodeValue(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName", index)))); } public org.w3c.dom.Node getStartingFormattedNameCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName" ); } public org.w3c.dom.Node getAdvancedFormattedNameCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName", curNode ); } public SchemaString getFormattedNameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new SchemaString(getDomNodeValue( dereference(curNode) ) ); } public SchemaString getFormattedName() throws Exception { return getFormattedNameAt(0); } public void removeFormattedNameAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName", index); } public void removeFormattedName() { while (hasFormattedName()) removeFormattedNameAt(0); } public void addFormattedName(SchemaString value) { if( value.isNull() == false ) { appendDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName", value.toString()); } } public void addFormattedName(String value) throws Exception { addFormattedName(new SchemaString(value)); } public void insertFormattedNameAt(SchemaString value, int index) { insertDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName", index, value.toString()); } public void insertFormattedNameAt(String value, int index) throws Exception { insertFormattedNameAt(new SchemaString(value), index); } public void replaceFormattedNameAt(SchemaString value, int index) { replaceDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "FormattedName", index, value.toString()); } public void replaceFormattedNameAt(String value, int index) throws Exception { replaceFormattedNameAt(new SchemaString(value), index); } public static int getLegalNameMinCount() { return 0; } public static int getLegalNameMaxCount() { return 1; } public int getLegalNameCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName"); } public boolean hasLegalName() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName"); } public SchemaString newLegalName() { return new SchemaString(); } public SchemaString getLegalNameAt(int index) throws Exception { return new SchemaString(getDomNodeValue(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName", index)))); } public org.w3c.dom.Node getStartingLegalNameCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName" ); } public org.w3c.dom.Node getAdvancedLegalNameCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "LegalName", curNode ); } public SchemaString getLegalNameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new SchemaString(getDomNodeValue( dereference(curNode) ) ); } public SchemaString getLegalName() throws Exception { return getLegalNameAt(0); } public void removeLegalNameAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName", index); } public void removeLegalName() { while (hasLegalName()) removeLegalNameAt(0); } public void addLegalName(SchemaString value) { if( value.isNull() == false ) { appendDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName", value.toString()); } } public void addLegalName(String value) throws Exception { addLegalName(new SchemaString(value)); } public void insertLegalNameAt(SchemaString value, int index) { insertDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName", index, value.toString()); } public void insertLegalNameAt(String value, int index) throws Exception { insertLegalNameAt(new SchemaString(value), index); } public void replaceLegalNameAt(SchemaString value, int index) { replaceDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "LegalName", index, value.toString()); } public void replaceLegalNameAt(String value, int index) throws Exception { replaceLegalNameAt(new SchemaString(value), index); } public static int getGivenNameMinCount() { return 0; } public static int getGivenNameMaxCount() { return Integer.MAX_VALUE; } public int getGivenNameCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName"); } public boolean hasGivenName() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName"); } public SchemaString newGivenName() { return new SchemaString(); } public SchemaString getGivenNameAt(int index) throws Exception { return new SchemaString(getDomNodeValue(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName", index)))); } public org.w3c.dom.Node getStartingGivenNameCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName" ); } public org.w3c.dom.Node getAdvancedGivenNameCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "GivenName", curNode ); } public SchemaString getGivenNameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new SchemaString(getDomNodeValue( dereference(curNode) ) ); } public SchemaString getGivenName() throws Exception { return getGivenNameAt(0); } public void removeGivenNameAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName", index); } public void removeGivenName() { while (hasGivenName()) removeGivenNameAt(0); } public void addGivenName(SchemaString value) { if( value.isNull() == false ) { appendDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName", value.toString()); } } public void addGivenName(String value) throws Exception { addGivenName(new SchemaString(value)); } public void insertGivenNameAt(SchemaString value, int index) { insertDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName", index, value.toString()); } public void insertGivenNameAt(String value, int index) throws Exception { insertGivenNameAt(new SchemaString(value), index); } public void replaceGivenNameAt(SchemaString value, int index) { replaceDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "GivenName", index, value.toString()); } public void replaceGivenNameAt(String value, int index) throws Exception { replaceGivenNameAt(new SchemaString(value), index); } public static int getPreferredGivenNameMinCount() { return 0; } public static int getPreferredGivenNameMaxCount() { return 1; } public int getPreferredGivenNameCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName"); } public boolean hasPreferredGivenName() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName"); } public SchemaString newPreferredGivenName() { return new SchemaString(); } public SchemaString getPreferredGivenNameAt(int index) throws Exception { return new SchemaString(getDomNodeValue(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName", index)))); } public org.w3c.dom.Node getStartingPreferredGivenNameCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName" ); } public org.w3c.dom.Node getAdvancedPreferredGivenNameCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName", curNode ); } public SchemaString getPreferredGivenNameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new SchemaString(getDomNodeValue( dereference(curNode) ) ); } public SchemaString getPreferredGivenName() throws Exception { return getPreferredGivenNameAt(0); } public void removePreferredGivenNameAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName", index); } public void removePreferredGivenName() { while (hasPreferredGivenName()) removePreferredGivenNameAt(0); } public void addPreferredGivenName(SchemaString value) { if( value.isNull() == false ) { appendDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName", value.toString()); } } public void addPreferredGivenName(String value) throws Exception { addPreferredGivenName(new SchemaString(value)); } public void insertPreferredGivenNameAt(SchemaString value, int index) { insertDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName", index, value.toString()); } public void insertPreferredGivenNameAt(String value, int index) throws Exception { insertPreferredGivenNameAt(new SchemaString(value), index); } public void replacePreferredGivenNameAt(SchemaString value, int index) { replaceDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "PreferredGivenName", index, value.toString()); } public void replacePreferredGivenNameAt(String value, int index) throws Exception { replacePreferredGivenNameAt(new SchemaString(value), index); } public static int getMiddleNameMinCount() { return 0; } public static int getMiddleNameMaxCount() { return 1; } public int getMiddleNameCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName"); } public boolean hasMiddleName() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName"); } public SchemaString newMiddleName() { return new SchemaString(); } public SchemaString getMiddleNameAt(int index) throws Exception { return new SchemaString(getDomNodeValue(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName", index)))); } public org.w3c.dom.Node getStartingMiddleNameCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName" ); } public org.w3c.dom.Node getAdvancedMiddleNameCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName", curNode ); } public SchemaString getMiddleNameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new SchemaString(getDomNodeValue( dereference(curNode) ) ); } public SchemaString getMiddleName() throws Exception { return getMiddleNameAt(0); } public void removeMiddleNameAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName", index); } public void removeMiddleName() { while (hasMiddleName()) removeMiddleNameAt(0); } public void addMiddleName(SchemaString value) { if( value.isNull() == false ) { appendDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName", value.toString()); } } public void addMiddleName(String value) throws Exception { addMiddleName(new SchemaString(value)); } public void insertMiddleNameAt(SchemaString value, int index) { insertDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName", index, value.toString()); } public void insertMiddleNameAt(String value, int index) throws Exception { insertMiddleNameAt(new SchemaString(value), index); } public void replaceMiddleNameAt(SchemaString value, int index) { replaceDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "MiddleName", index, value.toString()); } public void replaceMiddleNameAt(String value, int index) throws Exception { replaceMiddleNameAt(new SchemaString(value), index); } public static int getFamilyNameMinCount() { return 0; } public static int getFamilyNameMaxCount() { return Integer.MAX_VALUE; } public int getFamilyNameCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName"); } public boolean hasFamilyName() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName"); } public FamilyNameType newFamilyName() { return new FamilyNameType(domNode.getOwnerDocument().createElementNS("http://ns.hr-xml.org/2006-02-28", "FamilyName")); } public FamilyNameType getFamilyNameAt(int index) throws Exception { return new FamilyNameType(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName", index))); } public org.w3c.dom.Node getStartingFamilyNameCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName" ); } public org.w3c.dom.Node getAdvancedFamilyNameCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName", curNode ); } public FamilyNameType getFamilyNameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new FamilyNameType( dereference(curNode) ); } public FamilyNameType getFamilyName() throws Exception { return getFamilyNameAt(0); } public void removeFamilyNameAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "FamilyName", index); } public void removeFamilyName() { while (hasFamilyName()) removeFamilyNameAt(0); } public void addFamilyName(FamilyNameType value) { appendDomElement("http://ns.hr-xml.org/2006-02-28", "FamilyName", value); } public void insertFamilyNameAt(FamilyNameType value, int index) { insertDomElementAt("http://ns.hr-xml.org/2006-02-28", "FamilyName", index, value); } public void replaceFamilyNameAt(FamilyNameType value, int index) { replaceDomElementAt("http://ns.hr-xml.org/2006-02-28", "FamilyName", index, value); } public static int getAffixMinCount() { return 0; } public static int getAffixMaxCount() { return Integer.MAX_VALUE; } public int getAffixCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "Affix"); } public boolean hasAffix() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "Affix"); } public AffixType newAffix() { return new AffixType(domNode.getOwnerDocument().createElementNS("http://ns.hr-xml.org/2006-02-28", "Affix")); } public AffixType getAffixAt(int index) throws Exception { return new AffixType(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "Affix", index))); } public org.w3c.dom.Node getStartingAffixCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "Affix" ); } public org.w3c.dom.Node getAdvancedAffixCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "Affix", curNode ); } public AffixType getAffixValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new AffixType( dereference(curNode) ); } public AffixType getAffix() throws Exception { return getAffixAt(0); } public void removeAffixAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "Affix", index); } public void removeAffix() { while (hasAffix()) removeAffixAt(0); } public void addAffix(AffixType value) { appendDomElement("http://ns.hr-xml.org/2006-02-28", "Affix", value); } public void insertAffixAt(AffixType value, int index) { insertDomElementAt("http://ns.hr-xml.org/2006-02-28", "Affix", index, value); } public void replaceAffixAt(AffixType value, int index) { replaceDomElementAt("http://ns.hr-xml.org/2006-02-28", "Affix", index, value); } public static int getAlternateScriptMinCount() { return 0; } public static int getAlternateScriptMaxCount() { return Integer.MAX_VALUE; } public int getAlternateScriptCount() { return getDomChildCount(Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript"); } public boolean hasAlternateScript() { return hasDomChild(Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript"); } public AlternateScriptType newAlternateScript() { return new AlternateScriptType(domNode.getOwnerDocument().createElementNS("http://ns.hr-xml.org/2006-02-28", "AlternateScript")); } public AlternateScriptType getAlternateScriptAt(int index) throws Exception { return new AlternateScriptType(dereference(getDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript", index))); } public org.w3c.dom.Node getStartingAlternateScriptCursor() throws Exception { return getDomFirstChild(Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript" ); } public org.w3c.dom.Node getAdvancedAlternateScriptCursor( org.w3c.dom.Node curNode ) throws Exception { return getDomNextChild( Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript", curNode ); } public AlternateScriptType getAlternateScriptValueAtCursor( org.w3c.dom.Node curNode ) throws Exception { if( curNode == null ) throw new com.xml.XmlException("Out of range"); else return new AlternateScriptType( dereference(curNode) ); } public AlternateScriptType getAlternateScript() throws Exception { return getAlternateScriptAt(0); } public void removeAlternateScriptAt(int index) { removeDomChildAt(Element, "http://ns.hr-xml.org/2006-02-28", "AlternateScript", index); } public void removeAlternateScript() { while (hasAlternateScript()) removeAlternateScriptAt(0); } public void addAlternateScript(AlternateScriptType value) { appendDomElement("http://ns.hr-xml.org/2006-02-28", "AlternateScript", value); } public void insertAlternateScriptAt(AlternateScriptType value, int index) { insertDomElementAt("http://ns.hr-xml.org/2006-02-28", "AlternateScript", index, value); } public void replaceAlternateScriptAt(AlternateScriptType value, int index) { replaceDomElementAt("http://ns.hr-xml.org/2006-02-28", "AlternateScript", index, value); } private org.w3c.dom.Node dereference(org.w3c.dom.Node node) { return node; } }