/** * get one global type */ public final XSTypeDefinition getGlobalTypeDecl(String declName) { return(XSTypeDefinition)fGlobalTypeDecls.get(declName); }
/** * get one global attribute */ public final XSAttributeDecl getGlobalAttributeDecl(String declName) { return(XSAttributeDecl)fGlobalAttrDecls.get(declName); }
/** * get one global attribute group */ public final XSAttributeGroupDecl getGlobalAttributeGroupDecl(String declName) { return(XSAttributeGroupDecl)fGlobalAttrGrpDecls.get(declName); }
/** * get one global element */ public final XSElementDecl getGlobalElementDecl(String declName) { return(XSElementDecl)fGlobalElemDecls.get(declName); }
/** * get one global group */ public final XSGroupDecl getGlobalGroupDecl(String declName) { return(XSGroupDecl)fGlobalGroupDecls.get(declName); }
/** * get one global notation */ public final XSNotationDecl getGlobalNotationDecl(String declName) { return(XSNotationDecl)fGlobalNotationDecls.get(declName); }
/** * get one identity constraint */ public final IdentityConstraint getIDConstraintDecl(String declName) { return(IdentityConstraint)fGlobalIDConstraintDecls.get(declName); }
/** * Get a built-in simple type of the given name * REVISIT: its still not decided within the Schema WG how to define the * ur-types and if all simple types should be derived from a * complex type, so as of now we ignore the fact that anySimpleType * is derived from anyType, and pass 'null' as the base of * anySimpleType. It needs to be changed as per the decision taken. * * @param name the name of the datatype * @return the datatype validator of the given name */ public XSSimpleType getBuiltInType(String name) { return (XSSimpleType)fBuiltInTypes.get(name); }
private XSAttributeDecl getGlobalAttributeDecl(String declKey) { return (XSAttributeDecl)fGlobalAttrDecls.get(declKey); }
/** * Get a built-in simple type of the given name * REVISIT: its still not decided within the Schema WG how to define the * ur-types and if all simple types should be derived from a * complex type, so as of now we ignore the fact that anySimpleType * is derived from anyType, and pass 'null' as the base of * anySimpleType. It needs to be changed as per the decision taken. * * @param name the name of the datatype * @return the datatype validator of the given name */ public XSSimpleType getBuiltInType(String name) { return (XSSimpleType)fFullTypes.get(name); }
/** * @see org.apache.xerces.xs.XSModel#getNotationDeclaration(String, String) */ public XSNotationDeclaration getNotationDeclaration(String name, String namespace) { SchemaGrammar sg = (SchemaGrammar)fGrammarMap.get(null2EmptyString(namespace)); if (sg == null) { return null; } return (XSNotationDeclaration)sg.fGlobalNotationDecls.get(name); }
protected XSElementDecl findExistingElement(XSElementDecl elem, SymbolHash elemDeclHash) { // How can we avoid this concat? LM. String name = elem.fName + "," + elem.fTargetNamespace; XSElementDecl existingElem = (XSElementDecl)(elemDeclHash.get(name)); if (existingElem == null) { // just add it in elemDeclHash.put(name, elem); } return existingElem; }
public XSNotationDeclaration getNotationDeclaration(String name, String namespace, String loc) { SchemaGrammar sg = (SchemaGrammar)fGrammarMap.get(null2EmptyString(namespace)); if (sg == null) { return null; } return sg.getGlobalNotationDecl(name, loc); }
void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrGrpDecls.get(declKey) == null) { fGlobalAttrGrpDecls.put(declKey, decl); } }
void addGlobalElementDecl(XSElementDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalElemDecls.get(declKey) == null) { fGlobalElemDecls.put(declKey, decl); } }
void addGlobalGroupDecl(XSGroupDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalGroupDecls.get(declKey) == null) { fGlobalGroupDecls.put(declKey, decl); } }
void addIDConstraintDecl(IdentityConstraint decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getIdentityConstraintName() : namespace + "," + decl.getIdentityConstraintName(); if (fGlobalIDConstraintDecls.get(declKey) == null) { fGlobalIDConstraintDecls.put(declKey, decl); } }
void addGlobalAttributeDecl(XSAttributeDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalAttrDecls.get(declKey) == null) { fGlobalAttrDecls.put(declKey, decl); } }
void addGlobalNotationDecl(XSNotationDecl decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalNotationDecls.get(declKey) == null) { fGlobalNotationDecls.put(declKey, decl); } }
void addGlobalTypeDecl(XSTypeDefinition decl) { final String namespace = decl.getNamespace(); final String declKey = (namespace == null || namespace.length() == 0) ? "," + decl.getName() : namespace + "," + decl.getName(); if (fGlobalTypeDecls.get(declKey) == null) { fGlobalTypeDecls.put(declKey, decl); } }