Package org.jboss.gravia.repository.Namespace100

Examples of org.jboss.gravia.repository.Namespace100.Element


    /**
     * @see org.andromda.metafacades.uml.PartitionFacade#getActivityGraph()
     */
    protected java.lang.Object handleGetActivityGraph()
    {
        Element owner = this.metaObject.getOwner();
        if (owner instanceof StateMachine)
        {
            return owner;
        }
        return null;
View Full Code Here


    /**
     * @see org.andromda.metafacades.uml.ActionFacade#getTransition()
     */
    protected java.lang.Object handleGetTransition()
    {
        final Element owner = this.metaObject.getActivity().getOwner();
        return owner instanceof Transition ? owner : null;
    }
View Full Code Here

    /**
     * @see org.andromda.metafacades.uml.ActionFacade#getActionState()
     */
    protected java.lang.Object handleGetActionState()
    {
        final Element owner = this.metaObject.getActivity().getOwner();
        return owner instanceof State ? owner : null;
    }
View Full Code Here

    /**
     * @see org.andromda.metafacades.uml.ParameterFacade#getEvent()
     */
    protected java.lang.Object handleGetEvent()
    {
        Element owner = this.metaObject.getOwner();
        if (owner instanceof Activity)
        {
            return owner;
        }
        return null;
View Full Code Here

    @Override
    public Resource nextResource() {
        try {
            while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
                Element element = Element.forName(reader.getLocalName());
                switch (element) {
                    case RESOURCE:
                        return readResourceElement(reader);
                    default:
                        continue;
View Full Code Here

    }

    private Resource readResourceElement(XMLStreamReader reader) throws XMLStreamException {
        ResourceBuilder builder = createResourceBuilder();
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            Element element = Element.forName(reader.getLocalName());
            switch (element) {
                case CAPABILITY:
                    readCapabilityElement(reader, builder);
                    break;
                case REQUIREMENT:
View Full Code Here

        builder.addRequirement(namespace, atts, dirs);
    }

    private void readAttributesAndDirectives(XMLStreamReader reader, Map<String, Object> atts, Map<String, String> dirs) throws XMLStreamException {
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            Element element = Element.forName(reader.getLocalName());
            switch (element) {
                case ATTRIBUTE:
                    readAttributeElement(reader, atts);
                    break;
                case DIRECTIVE:
View Full Code Here

    @Override
    public Resource nextResource() {
        try {
            while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
                Element element = Element.forName(reader.getLocalName());
                switch (element) {
                    case RESOURCE:
                        return readResourceElement(reader);
                    default:
                        continue;
View Full Code Here

    }

    private Resource readResourceElement(XMLStreamReader reader) throws XMLStreamException {
        ResourceBuilder builder = createResourceBuilder();
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            Element element = Element.forName(reader.getLocalName());
            switch (element) {
                case CAPABILITY:
                    readCapabilityElement(reader, builder);
                    break;
                case REQUIREMENT:
View Full Code Here

        builder.addRequirement(namespace, atts, dirs);
    }

    private void readAttributesAndDirectives(XMLStreamReader reader, Map<String, Object> atts, Map<String, String> dirs) throws XMLStreamException {
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            Element element = Element.forName(reader.getLocalName());
            switch (element) {
                case ATTRIBUTE:
                    readAttributeElement(reader, atts);
                    break;
                case DIRECTIVE:
View Full Code Here

TOP

Related Classes of org.jboss.gravia.repository.Namespace100.Element

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.