Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   * 
  *   http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.    
  */
 
 package org.apache.tuscany.sca.xsd;
 
 import java.net.URI;
 import java.util.List;
 
 
Represents an XML Schema definition.

Version:
$Rev: 938056 $ $Date: 2010-04-26 15:12:30 +0100 (Mon, 26 Apr 2010) $
Tuscany.spi.extension.asclient:
 
 public interface XSDefinition extends Base {
 
     void setSchemaCollection(XmlSchemaCollection schemaCollection);

    
Returns the XmlSchema definition model

Returns:
the XmlSchema definition model
 
     XmlSchema getSchema();

    
Sets the XmlSchema definition model

Parameters:
definition the XmlSchema definition model
 
     void setSchema(XmlSchema definition);

    
Returns the namespace of this XmlSchema definition.

Returns:
the namespace of this XmlSchema definition
 
     String getNamespace();

    
Sets the namespace of this XmlSchema definition.

Parameters:
namespace the namespace of this XmlSchema definition
 
     void setNamespace(String namespace);

    
Get the location of the XSD

Returns:
 
     URI getLocation();

    
Set the location of the XSD

Parameters:
uri
 
     void setLocation(URI uri);

    
Get the DOM representation of the XSD

Returns:
 
     Document getDocument();

    
Set the DOM representation of the XSD

Parameters:
document
 
     void setDocument(Document document);

    
Get an XSD element by QName

Parameters:
name The element name
Returns:
The XSD element
 
     XmlSchemaElement getXmlSchemaElement(QName name);

    
Get an XSD type by QName

Parameters:
name The type name
Returns:
The XSD type
    XmlSchemaType getXmlSchemaType(QName name);

    
Get the aggregated definitions for a facade XSDefinition

Returns:
The aggregated definitions, or null if not a facade
Set the aggregated definitions for a facade XSDefinition

Parameters:
name The aggregated definitions
    void setAggregatedDefinitions(List<XSDefinitiondefinitions);
New to GrepCode? Check out our FAQ X